How do I Create a pop up that show only once?

0 favourites
  • 8 posts
From the Asset Store
Relax and relieve stress by popping bubbles in Fidget Anti- Stress Releaser!
  • So here is the condition

    I want to create a pop up to teach how player react to the objects in the game, something like tutorial or the how to in the game and this pop up tutorial has a tick for player to choose "never show it again to me" or something like that

    So the question is, how to let the game system know that player already tick the option and in the next game start up, the game don't need to show the tutorial again

    Btw, I'm developing the game to be exported to cocoonjs

    Thanks

  • Hey ijoin, there are several ways to do this..

    a quick way is to use instance variables

    presuming that your popup is an object...goto its properties and add an instance variable

    make it a Boolean and then give it a name like "Playe_ticked" or something that you recognise

    Then you can add an extra action to the Player clicked on "never show it again for me"

    The action would go anywhere before the popout action that you should already have for the popup..

    and it should trigger the Boolean instance variable that you just made for the Popup object and set the BOOLEAN to true...

    then in your other condition that makes the popup initially trigger you should place another "Condition"

    that checks if the Boolean has been triggered or not

    this way the popup object event will not occur if its been ticked by the player..but should trigger if it hasnt

    Hope that made sense..

  • Hey ijoin, there are several ways to do this..

    a quick way is to use instance variables

    presuming that your popup is an object...goto its properties and add an instance variable

    make it a Boolean and then give it a name like "Playe_ticked" or something that you recognise

    Then you can add an extra action to the Player clicked on "never show it again for me"

    The action would go anywhere before the popout action that you should already have for the popup..

    and it should trigger the Boolean instance variable that you just made for the Popup object and set the BOOLEAN to true...

    then in your other condition that makes the popup initially trigger you should place another "Condition"

    that checks if the Boolean has been triggered or not

    this way the popup object event will not occur if its been ticked by the player..but should trigger if it hasnt

    Hope that made sense..

    Thanks for your input mystazsea

    What if I closed my games? How to store that true condition?

  • ijoin, that data can be saved if you use the built in save function

    but you would need to tell construct 2 to save that data just before the programm closes

    and on reopening you should make sure that it checks the data and loads it

    You should read up all about saving data here

    https://www.scirra.com/tutorials/526/how-to-make-savegames

    https://www.scirra.com/manual/120/webstorage

    hope that helps

  • ijoin, that data can be saved if you use the built in save function

    but you would need to tell construct 2 to save that data just before the programm closes

    and on reopening you should make sure that it checks the data and loads it

    You should read up all about saving data here

    https://www.scirra.com/tutorials/526/how-to-make-savegames

    https://www.scirra.com/manual/120/webstorage

    hope that helps

    Oh right, that helps a LOT

    Thanks for the useful input

  • No worries ..glad to help out...

  • Toying around with webstorage and i stil can't make it work

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Never mind, I got it working

    Yay!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)