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
46
S
23
G
31
Posts: 693
Reputation: 20,637

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
22
G
247
Posts: 3,756
Reputation: 137,558

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
46
S
23
G
31
Posts: 693
Reputation: 20,637


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 39 guests