fibonari's Forum Posts

  • 1 posts
  • I am attempting to make a 2D platformer with guns that shoot towards wherever the user clicks on the screen. When using the "scroll to" behavior on the player, the screen moves up and down when the player jumps, and this makes it hard to aim at an enemy while jumping.

    I already have tried to "on every tick" scroll X to Player.X and this works, however if the player jumps down a cliff he of course does not remain on the screen. I want to make the screen only move in the Y direction when the player reaches the very bottom of the screen or the very top.

    I tried to create invisible sprites on the top and bottom of the window, with 0,0 Parallax, and then when the player is overlapping the sprites then make the system scroll Y to Player.Y - (half the height of window) (or plus for when hes at the top of the screen). This works exactly how I imagined only there is a lag so the player appears choppy while the vertical scrolling is happening. :(

    Any ideas on how to make it smooth? Thanks!

  • Try Construct 3

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

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