How do I set random but certain animation frame?

Get help using Construct 2

Post » Mon Sep 22, 2014 1:02 pm

Hi everyone,

I am trying to set my sprite to a random but predetermined number of frames. For example, if I want my animation to randomly choose only frame 0,1,3,5 and 6. I am really not too sure how to write the syntax for this.
B
45
S
23
G
31
Posts: 687
Reputation: 20,600

Post » Mon Sep 22, 2014 1:17 pm

You can use the choose() expression.

https://www.scirra.com/manual/126/system-expressions
ImageImageImage
B
71
S
21
G
230
Posts: 3,688
Reputation: 128,847

Post » Mon Sep 22, 2014 1:46 pm

Ah thanks @blackhornet. I learned about choose early on from the tutorials, but never used it for a long time and I really had forgotten about it.
B
45
S
23
G
31
Posts: 687
Reputation: 20,600


Return to How do I....?

Who is online

Users browsing this forum: Construct Monkey, David181, luckyrawatlucky and 6 guests