Anim. Sequence

Get help using Construct 2

Post » Sun Jun 15, 2014 3:11 pm

I have two animation frames that I want to play during a certain event. Every time the player hits the space key I just want it too cycle to the next animation in the set, and repeat that. Any ideas?
B
4
S
1
Posts: 19
Reputation: 436

Post » Sun Jun 15, 2014 4:05 pm

You could use a global variable.

Something like this:
gvAnim=0

On space pressed:
>gvAnim=0: play first animation
- set gvAnim to 1
>else :play second animation
- set gvAnim to 0

Happy constructing....
If it can be done, someone on the web will show you how to do it!

CDASI Games Mentality Break Splat-a-bug FlapFleet Challenge
B
35
S
13
G
7
Posts: 363
Reputation: 7,283


Return to How do I....?

Who is online

Users browsing this forum: ditocruz, mcscooter, RalleRoyal and 25 guests