playMaker

Author Topic: Move the camera in one direction only in a side scroller  (Read 2322 times)

Poonaka

  • Playmaker Newbie
  • *
  • Posts: 4
Move the camera in one direction only in a side scroller
« on: March 01, 2013, 12:17:56 AM »
I'm making a side scroller and want a camera that acts like the one in Super Mario Bros.  Basically I want it to follow the player with a little no camera movement zone.  Also only follow the player in one direction (to the right).

I've played around with iTween Move Update and can get the camera to follow the player.  I'm stuck on the movement in one direction part and the no camera movement zone.

gamedivision

  • Full Member
  • ***
  • Posts: 227
Re: Move the camera in one direction only in a side scroller
« Reply #1 on: March 01, 2013, 02:47:27 AM »
Drag a cube onto the scene,add an FSM to your camera add smooth follow and select the cube as the target,press play to find out which way you need to rotate that cube,press stop rotate the cube,parent the cube to your character remove mesh renderer,done
Or you could use get position on your character using a float,then set position on the cube that way when you jump the camera won't move because your only registering one axis.