I’m creating an interactive where the user selects 6 words out of 28 that are scattered over the screen and depending on which 6 words that they select it will then take them to play 1 out of 16 animations. I have also simplified the 28 words by grouping them into 4 categories (eg: 7 happy, 7 sad, 7 angry and 7 confused words).
I’ve sorted out the basic actionscript based on scoring which counts what the user has selected (eg: 5 happy words clicked = 5, 1 angry words clicked = 1, quite simple, but its one I can understand) and it works fine and takes them to play the animation eg…
onClipEvent (enterFrame) {
if (_level0.happycount == 5 && _level0.angrycount == 1) {
_level0.gotoAndStop(“animation1”);
}
}
But I’ve run into a small problem…
I’f the user chooses 3 words from one category and 3 words from another category I have an equal answer!
Does anyone know a better way to do this or is there a way to trace what the user has clicked first (eg: the 3 words from category 1 takes priority over 3 words from category 2 as they were clicked first? and will go play the right animation).
Any help or links to tutorials on this topic would be great.
I’m using actionscript 2.