Help with timing

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

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

Help with timing

Postby maxtreme » Sun May 14, 2006 9:33 pm

My game is finished but it needs one last important part. The game is supposed to be timed but I don't know how to make or set a timer. I've heard it being done before. I want the whole game to be timed for two hours, then go to a screen after the time is up. Is there a way to do this, starting at the second frame and continuing throughout the whole game?
maxtreme
Junior Member
 
Posts: 14
Joined: Sat Jan 28, 2006 9:16 pm
Location: Vally of Good Ideas but No Talent

Postby Mystery » Sun May 14, 2006 9:36 pm

You find an instruction how to make a time-countdown here:
http://www.adventuremaker.com/help/vbsc ... #countdown
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

Postby maxtreme » Sun May 14, 2006 9:54 pm

Thanks. So for two hours what would I put as the variable? And what would I do if I wanted to go to a specific screen when the time is up?
maxtreme
Junior Member
 
Posts: 14
Joined: Sat Jan 28, 2006 9:16 pm
Location: Vally of Good Ideas but No Talent

Postby maxtreme » Sun May 14, 2006 9:57 pm

And how do I create a Global Interger to begin with? I can't find the option.
maxtreme
Junior Member
 
Posts: 14
Joined: Sat Jan 28, 2006 9:16 pm
Location: Vally of Good Ideas but No Talent

Postby Mystery » Sun May 14, 2006 10:06 pm

Hmm, I'm not sure if the counter refers to seconds, this answer must be given by someone else.

For the end screen: if you read the instructions, there is under point 3 in the last part that the message "Time is up" is displayed. I guess you need to add a second line Action.GoToFrame "Framename".

Here is a picture where you can create variables (EDITED due to correction from Candle: also possible with free version of AM):
Attachments
Variables.JPG
Creating variables
Variables.JPG (25.46 KiB) Viewed 5438 times
Last edited by Mystery on Sun May 14, 2006 10:52 pm, edited 1 time in total.
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

Postby Candle » Sun May 14, 2006 10:43 pm

Free AM can do Variables
Game Creation Features :
? Built-in Load Game / Save Game functions
? Customizable inventory system
? Dialogue Wizard to create conversations
? Variables-dependent hotspots to create puzzles


http://www.adventuremaker.com/overview.htm
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3077
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby Mystery » Sun May 14, 2006 10:50 pm

Thanks for the correction and clarification, Candle :)
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

Postby maxtreme » Mon May 15, 2006 3:12 am

Thanks guys. Everything is great except for when I try to change the "The Time is Up" I get the message Expected Identifier.
maxtreme
Junior Member
 
Posts: 14
Joined: Sat Jan 28, 2006 9:16 pm
Location: Vally of Good Ideas but No Talent

Postby Mystery » Mon May 15, 2006 3:36 am

Try to change the VBScript like this:

Sub DecreaseCounter
If Counter > 0 Then
Counter = Counter - 1
ElseIf Counter <> -999 Then
Action.GoToFrame "Framename"
Counter = -999
End If
ShowCounter
End Sub

Sub ShowCounter
text_index = Action.GetMergedTextIndex
If Counter > 0 Then Text(text_index) = Counter
End Sub


"Framename" is the frame where you want to go after the time is up.
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron