(Solved)choosing random but with exception.

Get help using Construct 2

Post » Sun Dec 07, 2014 8:26 am

What I am trying to get is somewhat like a quiz. Sprite 1 is set to random frame, with each frame posing a puzzle. I set the answer by setting spriteanswer to frame: sprite1.animationframe, since I've set the answers to be accordingly. The problem is, for the other wrong option of this quiz, how do I get it to display a random frame while making sure it is not the correct frame.

I tried a sub event where if the wronganswer sprite = sprite.answer, to choose another frame, but it than always changes frame even if it is not the one selected.

Not sure why it doesn't works, or perhaps there is a more efficient way to get this done?
B
45
S
23
G
31
Posts: 693
Reputation: 20,612

Return to How do I....?

Who is online

Users browsing this forum: Cub3D, David181, Exabot [Bot], yiuyiu6666 and 26 guests