#Help with camera boundaries

3 messages · Page 1 of 1 (latest)

cinder parrot
#

I'm trying to make a real simple tower game, but i'm having trouble with the camera controls.

  1. is there a way to make the camera stop at a certain y-level? (so you cant see below the ground)
  2. how do i make it so that the camera smoothly follows the y-movement of my character, but doesn't follow the x movement? (so you cant see past the walls)
vast wraith
#
  1. go to the camera2d node and attatch it to the root node, not to the player. Then you attach a remote transorm 2d to the camera2d that you maked before, put the camera and the transformer to the position you want, go to Positon Smoothing, enable it, and put the smoothness you want
  2. go to camera2d, editor and 'drawn limits'
    then go to limit and set the limits to whatarver you wold like it to go, paying attention to the yellow lines go to the walls and whathever (strongly recomend turning on smoophing to smooph the camera when getting to the limits)
    Hope that this helps :3.
cinder parrot
#

ok that worked tysm!