How do I ...randomly choose an animation frame.

Get help using Construct 2

Post » Mon Jul 27, 2015 5:12 pm

Hello all,

I know how to randomly choose a sound file using 'choose' but how would I randomly choose an animation frame? Fro example; I have an animation with 3 frames:

frame0
frame1
frame2

How would I make a randomizer to randomly select a frame from the 3 available on a button click?

Thanks so much.
B
15
S
2
Posts: 229
Reputation: 1,353

Post » Mon Jul 27, 2015 5:38 pm

This would work:

On button clicked
sprite set frame = choose(0,1,2)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Jul 27, 2015 9:05 pm

Thank you so much :)
B
15
S
2
Posts: 229
Reputation: 1,353


Return to How do I....?

Who is online

Users browsing this forum: lemonizer and 2 guests