Setting variables using OnCreated

Get help using Construct 2

Post » Thu May 30, 2013 3:02 am


Hi!

I have a piece of code which sets an objects AngleOfMotion variable when the object is created (using the OnCreated condition), and then a second piece of code which moves the object every tick dependant on its AngleOfMotion.

The problem is that every time a new instance of the object is created it sets the AngleOfMotion for all active instances of the object, when I only want to set it for the instance which has just been created. Otherwise all instances change their motion as soon as a new instance is created.

This is for a custom particle emitter.

Any help would be greatly appreciated!
B
5
Posts: 85
Reputation: 395

Post » Thu May 30, 2013 3:18 am

Never mind, I've solved it using the ForEach condition.
B
5
Posts: 85
Reputation: 395


Return to How do I....?

Who is online

Users browsing this forum: LaroTaio and 3 guests

cron