How to go to another frame after an amount of time?

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

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

How to go to another frame after an amount of time?

Postby Morsy » Tue May 15, 2012 1:04 am

How do you go to another frame after an amount of time has passed? Maybe using VBScript? I'm making a H.O.U.S.E. Part 2 demo :3
User avatar
Morsy
Active Member
 
Posts: 88
Joined: Wed Feb 08, 2012 11:15 pm
Location: USA

Postby reneuend » Tue May 15, 2012 1:26 am

It depends on how/when you want the timer activated.

If it is immediately upon entering a frame that you want it to go to another frame after a period of time, go to Frame Properties and from the general tab, check the box for Enable Timer then fill in the fields.

If you want it to be activated by a hotspot, enter the following code in the hotspot's advanced tab (scripting):

Code: Select all
action.createtimedevent <seconds delay>, "action.gotoframe ""frame name""", false


example: I'm on frame A and I want to go to frame B after 10 seconds that a hotspot is clicked

Code: Select all
action.createtimedevent 10, "action.gotoframe ""B""", false


the amount of delay time can be very small: .1 to something like 25 seconds. Any longer time needed then you have to add a createtimedevent to a createtimedevent, which is fun in itself because it looks so messy! :twisted:
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby Morsy » Tue May 15, 2012 2:58 am

Thanks!

It was right when you entered the frame, so I put the timer :)
User avatar
Morsy
Active Member
 
Posts: 88
Joined: Wed Feb 08, 2012 11:15 pm
Location: USA


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests