making Score goes to next level

  • Hey guys, i am a new one on Construct, i already maked a Score that works fine in the level, but when you go to next layout he didnt stay with the same value, Like i made 150 Points in level 1, but in level 2 they go back to 0.

    Someone knows how i can make the score goes to the next layout?

    Thx for all (Sorry for my horrible english)

  • you have to make a layout that will remain Global ... usually for GUI

  • Thx, but if i want to put the score on the "Game over" Layout? The position of the score will be the same that in the level or i can change the positions in one layout to another?

    Edit: I need that the score keeps the same after changing layout. Example: Level 1 u make 140 points on Score GUI, level 2 starts with u having already 140 points there on the score.

  • you can use zorder to make your game over above everything

    or use a new layer called game over wich is on top of everything

  • But even if i make the game over i cannot pass the score from one layout to other.

    I am trying to do with the Local Storage plug in, still i dont know how to use it.

    I want to save the score at the end of layout, and after that show the same score at next layout.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You just need a global variable called score. Then you can display it in any layout ( for example Text.Text = score

  • ok first you need to make a layer in your scene

    then i would recommand you to rename it GUI

    in the layer property set it to Global

    now every time you make a new layout remember to create a layer GUI

    so the first GUI you will work on will become the global one

    then you can make the ui manage the score

    and then everytime you change scene the score stay since its global

    https://www.scirra.com/tutorials/594/bu ... terface-ui

  • You just need a global variable called score. Then you can display it in any layout ( for example Text.Text = score

    that too

  • It worked now, Thanks a lot!!!!

  • feel free to add me on discord if you need more help

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