(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?
Posts: 693
Reputation: 20,637

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 22 guests