1 person found this helpful
Is this for Actionscript or for an HTML5 Canvas file? What do you want to have happen when the user chooses the correct versus the incorrect answer? Can you share the sample files that you have tried that failed for you? Can you tell us why they didn’t work for you?
When the user chooses the correct answer, the score should augment +1, and they should be taken to the next randomly selected keyframe. User does not need to be taken to a "correct!" type frame.
When I've tried to put in anything random, it breaks the game, and I'm (obviously) not knowledgable enough to fix it.
The only code I still have on hand is:
var adFramesA = ["q1","q2","q3"];
I got this from an online source, so don't know much about it. If there's an online suggestion for how to do this, I've tried it with no success.
There is nothing wrong with your code above. It works just fine for me in a standalone file. You say that using random breaks the file, can you give a more complete description of what is happening?