0 Favourites

Stay with background from another layout - RESOLVED

  • Hello guys I'm new here on the forum and seek experience and learning, so I have the following questions:

    I have 2 layout, the first has 4 buttons (each 1 means background), the user must choose only one button, thus changing the background chosen.

    Chosen the background the user moves to the next layout (hence arises the doubt), how can I get the background that was chosen in 1 layout and stay with him in the second layout?

    Thanks in advance to all who try to help.

    Ron Sueliton

  • This is an English speaking forum, please stick to English or provide a translation with your post.

  • Hello guys I'm new here on the forum and seek experience and learning, so I have the following questions:

    I have 2 layout, the first has 4 buttons (each 1 means background), the user must choose only one button, thus changing the background chosen.

    Chosen the background the user moves to the next layout (hence arises the doubt), how can I get the background that was chosen in 1 layout and stay with him in the second layout?

    Thanks in advance to all who try to help.

    Ron Sueliton

    Really easy to do with variables, for example you make a global variable called background and set it to 0. Then on each one of your button presses set the variable to a different number, button1 press set global variable to 1, button2 press set global variable to 2 etc.... Then on your second layout you just check what the variable is, on start layout>if global variable background =1 set background to background 1 and so on.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • With the response our friend Sumyjkl in another post that I got the solve my problem.

    Make it global. It's in the properties tab on the object. You'll need to set it invisible if you at some stage don't want it though.

    Thanks, "twg", in response tbm, then try this way you spoke.

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