Spring spawn script?

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

Spring spawn script?

Postby Jimmyfisherman » Fri Oct 17, 2014 9:40 pm

Anybody here know how to spawn a spring to connect two circles when they hit each other? I want it to spawn a spring with endpoints at the center of each circle if a variable is above 0, and then subtract 1 from that variable so each circle can only have a certain number of springs. I want all of this code to be in each circle so it is an effect that can be replicated
Jimmyfisherman
 
Posts: 18
Joined: Thu Oct 02, 2014 9:20 pm

Re: Spring spawn script?

Postby Kilinich » Sat Oct 18, 2014 10:18 am

There is a known bug, you could not attach anything to existing geom.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Spring spawn script?

Postby Jimmyfisherman » Sun Oct 19, 2014 9:10 pm

If what you say is true, then the circles can just be killers, and on the onDie event, have them spawn new circles and attach the spring while they are spawned?
Jimmyfisherman
 
Posts: 18
Joined: Thu Oct 02, 2014 9:20 pm


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 4 guests