Help with circles

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

Help with circles

Postby STRVSTRV-7 » Thu Dec 27, 2018 4:11 pm

So.
You see the giant cat on the right, and it has red circle spawner. Inside the red circle spawner,
It has invisible circle with HUGE Script that spawns red circles.

The problem is I want the red circles to explode when collides with any stuff.
Except the objects that has materialName = "immune"
And I want the circles didn't explode when colliding with plane.

Big thanks whoever types it script for me.
Attachments
A little help here....phz
Here's the scene.
(62.22 KiB) Downloaded 31 times
STRVSTRV-7
 
Posts: 1
Joined: Thu Dec 27, 2018 4:05 pm

Re: Help with circles

Postby FRA32 » Fri Dec 28, 2018 11:15 am

Code: Select all
onCollide:
(e)=>{
e.other.materialname != "immune" && e.other+"" != "plane" ? {
timetolive = 0;
}: {}
}
FRA32
 
Posts: 215
Joined: Wed Dec 03, 2014 9:51 pm


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 1 guest