Stay with background from another layout - RESOLVED

0 favourites
  • 4 posts
From the Asset Store
40 ambient sound loops. A wide selection of looping ambient sounds for different locations.
  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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)