Set instance variable before creating it?

Get help using Construct 2

Post » Thu Aug 16, 2012 2:54 pm

I'm just wondering how I can set the variable of a instance before it is created? I'm creating a bullet and I want to set its target destination before it runs its OnCreate script
B
6
S
1
Posts: 31
Reputation: 1,237

Post » Thu Aug 16, 2012 3:10 pm

Yes.

Just create the instance with the wanted number, text, etc, then, when creating the bullet, for example, set the bullet to meet the instance data.

http://www.scirra.com/tutorials/361/understanding-uid-iid-health-of-enemies-and-rocket-smoke-trailTELLES08082012-08-16 15:12:25
ImageImageImageImageImageImage
B
92
S
19
G
12
Posts: 1,192
Reputation: 18,276


Return to How do I....?

Who is online

Users browsing this forum: Kagubro, Yahoo [Bot] and 37 guests