Upgrade page for game with multiple boards
chipcustomizer
Member Posts: 2
I have a game I'm creating where I will have an upgrade page where people can purchase upgrades during the game. The problem is that going to the upgrade page will happen from any number of different scenes and when I come out of the upgrade scene I want to go back to where I came from. I can't seem to figure out how to do this easily. Can anyone help?
Thanks,
Dan
Thanks,
Dan
Comments
When you access the Upgrade page, do a normal change scene.
Afterwards when exiting, just create a Rule that changes the scene to the last visited one depending on your custom index attribute (so it has to be a game attribute which is global).
You'll need to make a rule for each possible value and use the Change Scene drop-down menu to select the scene names:
When attribute game.MyScene=1
Change Scene [first scene name]
When attribute game.MyScene=2
Change Scene [second scene name]
etc.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks a lot - that will definitely work and I can do that. The only problem I have is that if I have a game that has 100+ levels it's a bit of a pain that I have to add that in for every level. Perhaps that would be a good RFE for game salad to add so that someone wouldn't have to do that and could put an expression in the change scene drop down.
Thanks again and if you think of any other way this could work or if anyone else has any other suggestions please let me know.
edit: but yes, I agree it would be nice to have that feature you're asking for. I'm pretty sure it will come in a future build.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User