How to make a screen don't show every time after loading the game

0 favourites
  • 8 posts
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • I'm trying to put a screen for accepting conditions and when the button is pressed it shouldn't appear next time. It is not showing when coming back to the Home screen but it still shows up after opening the game again.

  • I've changed the code a little bit but it is still showing up when the game is turned on again.

  • try this example let me know if it works for you. it works on my end.

  • Nothing has changed, to be honest, and now it's not showing on the screen at all.

    But it is a good field for experimenting and some new possibilities for me so thank you very much.

    Just in case here are my lines.

  • Nothing has changed, to be honest, and now it's not showing on the screen at all.

    But it is a good field for experimenting and some new possibilities for me so thank you very much.

    Just in case here are my lines.

    see order of events... button press needs to happen after key checks and all.. almost at end ... for me it disables and enables a big red sprite if u open the example i linked in google drive ul see it works. but if for u doesnt there might be another event sheet interfeering with it.

    what i did on my end to make sure i do save and remove infact the key... i added a text to display the global variable when changed like a lil debug on runtime. if ur global variable changes and ur local key is working... then is probably a layer/invisible/opacity issue on ur default state of sprite? or layer?

  • After making some modifications, I've tested the functionality on my mobile device through several openings and closings, and it appears to be working properly. However, there is still one issue that needs to be addressed - when opening the screen, it briefly pops up and then disappears.

    Here are the specific lines of code that may need to be adjusted to resolve this problem:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • After making some modifications, I've tested the functionality on my mobile device through several openings and closings, and it appears to be working properly. However, there is still one issue that needs to be addressed - when opening the screen, it briefly pops up and then disappears.

    Here are the specific lines of code that may need to be adjusted to resolve this problem:

    it's the reset of global variables... something loads before that triggers some values... then the event sheet start of layout"reset the global variables" happens. so between this loading and start of layout u get ur glitch.

    try to place the "reset global variables" in loading screen before entering this eventsheet. like in the menu or on the "preloading screen" since u reseting global variables which are available through all scenes it should think the "ghost pop" when u load the gameplay. or atleast logically should work... but that isnt 100% when coding lol ... goodluck hope this helps. And Happy Easter if u you celebrating.

  • I managed to do this in another way by creating families with global variables. Instead of resetting the global variables, I used the 'set text' function to make the variable empty again(set text to ""), and now it's working. Thank you for your big help and your time. Have a great Easter!

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