Issue With Game Camera Movement

Discussion in 'Buildbox General Discussion' started by isthisrequired, Jun 20, 2017.

  1. isthisrequired

    isthisrequired Boxer

    Joined:
    Jun 14, 2017
    Messages:
    74
    Likes Received:
    7
    Hi everyone,

    I can't seem to find a thread about this, but when my character gets stuck behind an object, if the up button is continued to be pressed, the camera keeps moving upwards beyond the character and then the character is magically moved forward to the camera location, thus jumping over any of the obstacles it was meant to have to maneuver around. Is that a glitch just in the preview on a computer, or would that persist as a problem on mobile phones where the movement is touch-based? And how can I go about fixing it? Thanks.
     
  2. Astro Games

    Astro Games Avid Boxer

    Joined:
    Nov 15, 2016
    Messages:
    356
    Likes Received:
    190
    It comes back because of screen deletion threshold set in World parameters. When blocking asset is removed from memory your characters jumps back to the screen. You can avoid it by killing your character once he touches the screen border (Game Frame settings) or you can try to build your objects with non perpendicular edges so character could slide on them instead of be blocked - where possible. Any other tips guys?
    And yes, it would be the same on device.
     
    isthisrequired likes this.
  3. isthisrequired

    isthisrequired Boxer

    Joined:
    Jun 14, 2017
    Messages:
    74
    Likes Received:
    7
    Okay, thank you. Is there a way, by any chance, to stop the camera from moving if the character gets stuck behind an obstacle (if the character is stuck then the camera stops moving?). Because my game frame is set exactly how I want it so if I could "freeze" the camera in place when the character gets stuck that would be perfect. Thank you!
     
  4. Astro Games

    Astro Games Avid Boxer

    Joined:
    Nov 15, 2016
    Messages:
    356
    Likes Received:
    190
    Maybe try to play with Forced Movement of your World. This is the place where you control the 'camera'. If you put 0 to Min and Max the camera will move only with your character, not pushing it to move forward so you could be able to go back for instance.
     
    isthisrequired likes this.
  5. isthisrequired

    isthisrequired Boxer

    Joined:
    Jun 14, 2017
    Messages:
    74
    Likes Received:
    7
    I set both as 0 but some reason the camera can still be moved beyond the character :(:confused:
     
  6. Astro Games

    Astro Games Avid Boxer

    Joined:
    Nov 15, 2016
    Messages:
    356
    Likes Received:
    190
    Remove your assets (whatever you want) or not and give us a file to download and check.
     
    isthisrequired likes this.
  7. isthisrequired

    isthisrequired Boxer

    Joined:
    Jun 14, 2017
    Messages:
    74
    Likes Received:
    7
    How can I export the bbdoc to a file that is uploadable here?
     
  8. isthisrequired

    isthisrequired Boxer

    Joined:
    Jun 14, 2017
    Messages:
    74
    Likes Received:
    7
  9. Astro Games

    Astro Games Avid Boxer

    Joined:
    Nov 15, 2016
    Messages:
    356
    Likes Received:
    190
    I downloaded your file and as far as I know this is impossible but I may be wrong.
    If I'm right I would change the gameplay by rotating obstacles some degrees to be hard to get stuck behind it or change the lower Frame Border to kill the character.
     
  10. isthisrequired

    isthisrequired Boxer

    Joined:
    Jun 14, 2017
    Messages:
    74
    Likes Received:
    7
    I played around with this for a bit, but now the camera doesn't even move when the character goes above the screen and the character keeps moving above but out of site. Any suggestions?
     

Share This Page