The Character Lags Behind By An Acceleration

Discussion in 'How Can I...?' started by Floki, Oct 12, 2023.

  1. Floki

    Floki Boxer

    Joined:
    Oct 4, 2023
    Messages:
    1
    Likes Received:
    0
    Greeting!

    I'm making a game where my character travels vertically upwards and accelerates over time. The problem appears that when accelerating, my character starts lagging behind and eventually falls "below the screen". How can I solve this problem so that my character stays fixed on the screen and can only be moved by moving my finger?

    Thank you very much for your help!
     
  2. Vlad-NY

    Vlad-NY Serious Boxer

    Joined:
    Jul 21, 2018
    Messages:
    608
    Likes Received:
    361
    Buildbox version used a demo cum te video of what happens or nodes used / configuration is appreciated
     
  3. waleed

    waleed Boxer

    Joined:
    Feb 28, 2020
    Messages:
    11
    Likes Received:
    0
    To keep your character fixed on the screen while allowing vertical movement, you can try adjusting the camera follow script or code. Make sure your camera always follows your character's Y-axis position, but not the X-axis if you want to control it only by moving your finger.
     

Share This Page