onCollide scripting for liquids?

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

onCollide scripting for liquids?

Postby Rideg » Sun Sep 19, 2010 8:03 pm

Hello. Is it able to do an onCollide scripting with objects and liquids, like changing the color of a circle to the liquids's color when it touches it.

Any ideas?
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: onCollide scripting for liquids?

Postby electronicboy » Sun Sep 19, 2010 8:17 pm

i dont think you can do oncollide with water, also water can only be 1 colour at a time.
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: onCollide scripting for liquids?

Postby Rideg » Sun Sep 19, 2010 9:16 pm

electronicboy wrote:...also water can only be 1 colour at a time.

What do you mean?
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: onCollide scripting for liquids?

Postby niffirg1 » Sun Sep 19, 2010 9:44 pm

Like all the water in the scene has to be the same color or sumpthin like that
User avatar
niffirg1
 
Posts: 376
Joined: Mon Aug 31, 2009 10:31 pm
Location: The Great American South!

Re: onCollide scripting for liquids?

Postby RA2lover » Mon Sep 20, 2010 2:37 am

you might want to be sure the object you're colliding with is water, by using
Code: Select all
e.other."" == "water" ?

which returns a boolean value.

also, water attributes are usually on the SPH->{} console parameters, like SPH.color(updated on newer versions to app.watercolor).
Jrv wrote:
TC42 wrote:Quite honestly, I didn't think anyone on 4chan has that good a use of grammar, spelling, usage, mechanics, ect.
But I've never been there, so I may be wrong.


GTFO newfgt
User avatar
RA2lover
 
Posts: 607
Joined: Mon Aug 31, 2009 8:43 pm
Location: Brazil


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 5 guests