how to make a Textbox stay in place on a side scroller game

0 favourites
  • 5 posts
From the Asset Store
Forget about default textbox restrictions, you can create sprites atop of the textbox
  • When my Player leaves the screen it switchs to the next screen but my Button and Text box stay on the first screen so how do I make them appear on the next screen?

  • What do you mean by the next screen?

  • If you are switching from one layout to another instead of "side scrolling"on the same layout and you want to have the text box appear in the same spot you can place the UI (text box layer hp all the stuff you normally want to keep) on a separate layer and make it global and just in case paralax 0,0 (in the layer settings).

    Also if you have some other kind of setup you may need to just set that text box to "global" on its properties.

    I find it better just to make the layer which I'll use as a UI a global to keep it tidy but to each their own. I made a very simple example of the text passing from one layout to the other. (no paralax just the text) Here it is. Just click anywhere it will switch layout and update the text. I hope it helps.

  • I have a 3840 by 1280 screen divided into two 1920 by 1280 screens which will alternate by a push of a button or by walking off the edge. In hindsight it was easy, I duplicate the score number and push button on both screens and I will keep it on a separate layer to make it more organised. Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Marc456

    Ok so in that case you do not actually need to duplicate it you just need to set the layer(best to have a separate layer for your ui) paralax property to 0,0 that way you just need one field and it will keep the information(since its the same field) and follow the player around.

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