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
2
Posts: 31
Reputation: 1,387

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
Image
B
98
S
22
G
16
Posts: 1,338
Reputation: 21,202


Return to How do I....?

Who is online

Users browsing this forum: dandeliongames, Google [Bot], QuantumMMX and 6 guests