Cant move to next frame until all hotspots are clicked.

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Cant move to next frame until all hotspots are clicked.

Postby pennsteve » Sat Apr 25, 2009 6:14 pm

I know I've asked this before but I cant seem to find the post anywhere.

I want to make a "Find the Difference" game. The hotspots will disable when clicked. How do I make it so they wont go to the next frame until all hotspots are found? Also, I want it to automatically go to the next frame after the last hotspot is found, can this be done?

Example, 2 photos on the frame side by side, one has 5 differences. After they find all 5, they will automatically go to the next frame.

I usually bookmark my posts, but for some reason I forgot to bookmark it the last time I asked this question.

Thank You. :D
pennsteve
Expert Member
 
Posts: 329
Joined: Wed Aug 06, 2008 3:55 pm

Postby pennsteve » Sat Apr 25, 2009 9:55 pm

Nevermind. I went to the help file and figured it out. lol. Gets easier to figure things out if you did them before.

Edit: Ok its not working. It works on the first frame, but not on the second frame. It worked ONE time, but thats all. Now it wont work.

I made a global integer variable and named it hspot.

I then put this in each hotspot properties:

hspot = hspot - 1
If hspot = -5 Then Action.GoToFrame "cities2"

So far my frame names are houses, cities2, carshows. When I click on all 5 hotspots in houses, it goes to cities2, but when I click on all 5 hotspots in cities2, it wont go to carshows. And yes, I changed the frame name to carshows in the code and I DO have the code in all 5 hotspot properties. What is wrong?? (it DID go to carshows one time, but thats all, now it wont do it)

Edit again (sorry lol): If I test the second frame by itself, it will go to the third frame. I think I have to make a global integer variable for each frame, correct? This is where my problem lies. I think I had this problem before (its been so long). Ok I'll make more variable names and see if it works. lol.

Edit: Ahhhhhhh, it works now. I have to use different variable names for each frame. lol. Its so satisfying to figure something out on my own (although I really didnt figure it out entirely, part of it was remembering the help you others gave me way back when). :D
pennsteve
Expert Member
 
Posts: 329
Joined: Wed Aug 06, 2008 3:55 pm


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron