Page 1 of 1

How do i make a circle expand everytime it touches somethin?

PostPosted: Fri Aug 18, 2017 2:13 am
by Khaotic
Yes, i did a search, nothing.
So i basically want to make a circle expand its radius by 0.1 every time it touches something, and i tried
Code: Select all
e.this.radius = + 0.1
and it only sets the radius to 0.1.

Re: How do i make a circle expand everytime it touches somethin?

PostPosted: Fri Aug 18, 2017 8:11 pm
by FLO
You should be a little programming language learning because this script is really easy ...

Here are a few tutorials for you:
http://www.algodoo.com/forum/viewtopic.php?f=14&t=1591&p=16932&hilit=thyme+beginner+tutorial#p16932

Here is the script which you need:
onCollide=(e)=>{
radius = radius + 0.1
}