Help making a timed sequence :(

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

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

Help making a timed sequence :(

Postby Chrono » Mon Feb 25, 2008 2:14 am

Hi all!
I need help :oops: I'm creating a game with AM, and I want to make a timed sequence, that after a hotspot is clicked (or a frame appears) you have 2 minutes to look around for a panel in a wall and solve a puzzle I made, but I can't. I just can put a timer in the panel (if you don't solve the puzzle in 2 minutes you die) and what I want is to begin the timer after I click on a hotspot in another place(if you don't walk around, find the panel and solve it you die). Is there some VbScript or something to make a timer that doesn't stop when you go to another frame?
Sorry If I didn't explain myself correctly :oops:
Thanks in advance! :D

Chrono
Chrono
New Member
 
Posts: 2
Joined: Mon Feb 25, 2008 1:33 am

Postby GM-Support » Mon Feb 25, 2008 1:42 pm

Hi,

Please try with the section "19. How to create a global countdown?" that you can find here.

GM-Support
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm

Postby Lyberodoggy » Mon Feb 25, 2008 5:49 pm

If you 're having problems with the script (in the case your script doesn't work in the next frame that is), then just add the script under the tab Advanced of the frame with the puzzle... The vbscript will load after the frame is loaded and start to countdown... When the countdown (for which you can use the "for... next" command) is over type the code which takes the player to another frame like:
Code: Select all
Action.Gotoframe "You_just_died"

or display a message box telling the player he is dead and then a load popup (but I prefer the first way):
Code: Select all
MsgBox "You Just Died... Please try again"
Action.PopupLoadGame


I would also suggest that you put a popup save before that frame (because if else the player may lose a great progress he hasn't save)
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby Chrono » Mon Feb 25, 2008 10:49 pm

Thank you both!! I finally made it :D
Thanks again!
Chrono
New Member
 
Posts: 2
Joined: Mon Feb 25, 2008 1:33 am


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests