A pop up window on every single layer


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,



  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,948
    When you say layer, do you actually mean an actor layer in GameSalad, or are you using that word loosely to mean a new level in the game?

    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

  • thanks for your reply tatiang, but I think i didn't explain properly. The hint is an image(pop up window with a sentence in it) Upon pressing the button, this message has to come up, and it is different on every level. So, can i have just one actor displaying different images on different levels of the game?

  • TheGabfatherTheGabfather Member Posts: 633
    edited March 2013
    Would your hints essentially look the same, save for the difference in text? If so, it would be better to go with the Table solution as suggested by @tatiang . What you would do is simply make a single actor that has your popup window decorations as an image (eg. Frame / Word Bubble) and do a Display Text Rule that grabs from the appropriate Row from your Hints Table (eg. at Level 104, grab from Row 104).

    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!
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,948
    What @TheGabfather said.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • great thanks guys, appreciate it,sorry for the late reply, my PC has been going through tough times:)
  • that worked awesomely, but i was wondering how I would make the text stay. every time i click the actor/button, the text shows up and disappears, what can i do so the text stays?
  • TheGabfatherTheGabfather Member Posts: 633
    edited April 2013
    Does it disappear immediately? It would help if you can tell us how your Rule is designed so far :) are you using a combination of On Touch and On Release?
  • yes it does disappear immediately; it just appears for a second, then disappears. I would like it to stay until a player reached the next level. iam using touch and pressed, I've tried released, but then the hint text for the next level comes up automatically when i move to the next level, without having to ask for help/pressing the hint button. i hope it makes sense; the hint is different for every level and should only come up when the hint button is pressed.

    thanks for your help mate, appreciated
  • btw, aim from australia, don't be surprised by mate:)
  • TheGabfatherTheGabfather Member Posts: 633
    If your Rule is
    When Touch is Pressed
    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." :)
  • thanks mate, I've got the first part right, but how would i create the rule to reset the show hint button to false? what rule will i have to create?


  • TheGabfatherTheGabfather Member Posts: 633
    Not to disrespect, but I think you need to master the basics more if you are to successfully implement most if not all the things you want with your game.

    Start by going through the CookBook, because I feel like you haven't yet. Good luck! :)
Sign In or Register to comment.