(Solved)choosing random but with exception.

0 favourites
  • 1 posts
From the Asset Store
Easily generate many levels from a set of pre-built scenes (Construct 3 template)
  • 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?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)