go to several frames back

This forum is meant for people to share their knowledge by writing their own tutorials for Adventure Maker.

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

go to several frames back

Postby Joannes » Tue Jan 26, 2010 9:49 pm

Hi there,
Any good solutions on how to be able to return to a frame after visiting several other frames?
This for example if you can go to a "settings frame" from any where in the project and if you can then select several options (that will lead to other frames) from the "settings menu". How then to get back to the game?

thanks for any advise,

Joannes
Joannes
New Member
 
Posts: 1
Joined: Tue Jan 26, 2010 9:32 pm
Location: Utrecht, Netherlands

Postby Mystery » Tue Jan 26, 2010 10:16 pm

Welcome to the forums Joannes :)

Do you mean like this?
http://www.adventuremaker.com/phpBB2/vi ... hp?p=13332

Here is also a tutorial thread:
http://www.adventuremaker.com/phpBB2/vi ... php?t=4676
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

Postby reneuend » Thu Jan 28, 2010 3:05 am

If I understand correctly, its not that you want to go several frames back, but that you want a settings page(s) that you can go to and when finished have it automatically take you back to the game.

all you need to do is create a hotspot that will take you to the "Main Settings" frame. In this hotspot you will add a little bit of code to save the current frame name.

First, create a variant variable called, "CurrentGamePage"

Next,
put the following code under every hotspot that takes you to the "Main Settings" frame. (it goes in the advanced tab)
Code: Select all
CurrentGamePage = Action.GetCurrentFrameName
Action.GoToFrame "Main Settings", 1,1


From the "Main Settings" frame, you would add the following code under the hotspot that returns you to the game. (in the advanced tab)
Code: Select all
Action.GoToFrame CurrentGamePage, 1, 1
---


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


Return to Post Your Own Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron