Thanks

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support
hs_count=hs_count+1
If hs_count=8 then Action.GotoFrame "nextframe"
difference1 = difference1 + 1
If difference 1 = 5 (number of differences per frame) Then Action.GoToFrame "Name_of_NextFrame"
Lyberodoggy wrote:Create an integer called hs_count
Let's say the differences are totally 8
In every hotspot place:
- Code: Select all
hs_count=hs_count+1
If hs_count=8 then Action.GotoFrame "nextframe"
Then make the hotspots to disable themselves after the first click.
Lyberodoggy wrote:No, just the hotspots. Each and every one of them will check for the right answer.
And remember that you have to go to actions and tick "Disable and Hide this Hotspot"
juhuwoorps wrote:you also can use the same variable. But you must change it to zero in every new frame( in the frame properties).
It's better you use different vars, in couse you have several numbers of differents in your pics! This is also better to debug!
hs_count=0
Lyberodoggy wrote:When you declare a variable in AM it's like declaring a public variable in a programming language: It stays there forever unless the program is terminated.
I 'd suggest you added this code in the frames:
- Code: Select all
hs_count=0
as the others have said because it will lower the risk of getting wrong results.
I would also suggest that you use only one variable. You just have to alter the code each time depending on the number of the differences on a frame
Return to Adventure Maker Technical Support and Bug Reports
Users browsing this forum: No registered users and 0 guests