Endless screen height

  • Hello.

    My game works like that:

    User has to click thes space button in order to make a sprite goes up.

    Meanwhile, a water background incrases. if the spirit touches the water background, the player loses.

    My problem is that when the user reached with the sprite the top of teh game, it doesn't show the spirite anymore..

    How I can fix it to keep showing the sprite even after reaching the end of the game window? (like icy-tower style)

  • Either use the scrollto behaviour or the system scrollto action.

  • I tried, it doesn't seem to be changing anything.. :S

    <img src="http://s7.postimg.org/lqbs9tm8b/image.png" border="0" />

  • set the layout to unbounded scrolling and it should work.

  • set the layout to unbounded scrolling and it should work.

    Thank you very much, It works perfectly!

    It just caused one small problem, This is my workarea:

    <img src="http://s12.postimg.org/xks99pthp/image.png" border="0" />

    And this is when I run the game:

    <img src="http://s12.postimg.org/oe9ymfo99/image.png" border="0" />

    Why is that?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • player is in the middle because of the scrollto behaviour. It should be easy enough to fix. create a camera sprite or use the system scroll and set it to player.y + 200 or something similar. play around with the settings, make mistakes, correct them and learn.

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