Randomize Unique Tiles

Get help using Construct 2

Post » Fri Jan 23, 2015 7:00 pm

AnimationFrame is a sprite expression that will give you the which of the frame is currently playing. You could also go ahead with an instance variable if you prefer.
B
69
S
28
G
24
Posts: 977
Reputation: 18,739

Post » Fri Jan 23, 2015 7:04 pm

ok nevermind, you CAN use the frame animation as an ID. The solution was to make an instance variable and just after the frame is called on, set the current frame to the instance variable. thanks again for this great thread!

Also thanks for confirming the frame number is itself an identifying value. i didn't realize it could be called on any time, but now that you say that it makes perfect sense.

Thanks!
Caleb
B
59
S
9
G
1
Posts: 939
Reputation: 6,545

Previous

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Nicolas951, tarek2 and 7 guests