Circle to gear script

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

Circle to gear script

Postby mattyboy » Sat Nov 07, 2009 4:17 am

i dont know if this is possible but if isnt... it should.......... when you press a button you can change a circle into gear and vice versa. does anyone know if this is possible?
User avatar
mattyboy
 
Posts: 24
Joined: Mon Aug 31, 2009 11:24 pm

Re: Circle to gear script

Postby niffirg1 » Sat Nov 07, 2009 4:43 am

No to my knowledge this is not possible
User avatar
niffirg1
 
Posts: 376
Joined: Mon Aug 31, 2009 10:31 pm
Location: The Great American South!

Re: Circle to gear script

Postby standardtoaster » Sat Nov 07, 2009 4:49 am

You can fake it. Make a circle and gear in the same place.
Code: Select all
scene.my.color = [1,1,1,1]
scene.my.color2 = [1,1,1,0]
scene.my.collideSet = 1
scene.my.collideSet2 = 0

In the onCollide of an object put:
Code: Select all
scene.my.color = [1,1,1,0]; scene.my.collideSet = 0; scene.my.color2 = [1,1,1,1]; scene.my.collideSet2 = 1

In the onCollide of another object put:
Code: Select all
scene.my.color = [1,1,1,1]; scene.my.collideSet = 1; scene.my.color2 = [1,1,1,0]; scene.my.collideSet2 = 0

In the color of the circle put
Code: Select all
{scene.my.color}

In the collideSet of the circle put
Code: Select all
{scene.my.collideSet}

In the color of the gear put
Code: Select all
{scene.my.color2}

In the collideSet of the gear put
Code: Select all
{scene.my.collideSet2}
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Circle to gear script

Postby mattyboy » Sat Nov 07, 2009 4:53 am

...wow... they should make it possible
User avatar
mattyboy
 
Posts: 24
Joined: Mon Aug 31, 2009 11:24 pm

Re: Circle to gear script

Postby standardtoaster » Sat Nov 07, 2009 5:30 am

What use would this be?
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Circle to gear script

Postby Chronos » Sat Nov 07, 2009 10:38 am

Well, for one, it would make it easier for some people. :roll:

Image
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 2 guests

cron