A pop up window on every single layer
ShaunRasulov@y7mail.com
Member Posts: 20
Hi
Hoping someone could help me out. I have a game with 200 levels(layers) and I was wondering what the best way would be to set up a button(the same button on all layers) that will display various messages on every level. It is a HINT button that should display various hints for different levels.
Any advice/help would be appreciated,
Cheers,
Shaun
Hoping someone could help me out. I have a game with 200 levels(layers) and I was wondering what the best way would be to set up a button(the same button on all layers) that will display various messages on every level. It is a HINT button that should display various hints for different levels.
Any advice/help would be appreciated,
Cheers,
Shaun
Comments
Well, first put the hints in a table with a row for each level. Then, retrieve the hint from the row that corresponds with the current level.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
cheers,
Shaun
Should save you from creating 200 different images
If you'll read up on Tables and Attributes I think you will be able to understand how this works and be able to work around this perfectly good luck!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
thanks for your help mate, appreciated
When Touch is Pressed
do
Display Text
Don't.
This will only display the text while Touch is Pressed. And since if you're using Released and the hint remains, I'm assuming you're using a single Scene for your game, for all levels?
Just make do with Custom Attributes. Create a Boolean Attribute (eg. 'showHint' == "false"). When Touch is Pressed, Change Attribute 'showHint' to "true." And then in your hint Actor, do: If 'showHint' == "true," Display Text ...
Then when you finish the level, reset 'showHint' back to "false."
cheers
Start by going through the CookBook, because I feel like you haven't yet. Good luck!