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

About advanced scenes, and the Thyme scripting language used in Algodoo.

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

Postby Khaotic » Fri Aug 18, 2017 2:13 am

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.
Khaotic
 
Posts: 1
Joined: Fri Aug 18, 2017 1:25 am

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

Postby FLO » Fri Aug 18, 2017 8:11 pm

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
}
I make mainly games.
best games
best game engine
User avatar
FLO
 
Posts: 16
Joined: Thu Aug 18, 2016 5:11 pm
Location: germany


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 3 guests

cron