Smooth camera movement? (like Limbo)
Approw
Member Posts: 703
I was wondering how to make the camera smoothly following the player. This video from Limbo shows what I mean
I tried it with the interpolate behavior, but I was unable to replicate this exact camera movement. The idea is that when the player starts walking the camera speed ramps up to the players position, and when the player stops the camera speed ramps down, but very subtle. If someone can help me out with this would be truly helpful!
Thanks
Comments
@Approw, to achieve this effect, put the Control Camera behaviour into a separate invisible actor, lets call it "CamActor".
The CamActor is then constrained to the player actor with a dampening effect:
The 5 is the dampening value, play around with this value until it feels right for you.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
@Hopscotch Thank you so much!! this was exactly what I was looking for!
However, instead of using the control camera, I used,
Constrain Attribute scene.Camera.Origin.Y to self.Position.Y-350
The game is a top scroller and its just using the Y axis. if I used the control camera behavior, the player was always above the middle of the screen.
Thanks again, you saved me a big headache:)!!
Good stuff @Approw, glad it helped.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
aaaahhhhh @Hopscotch you made my game so much more awesome!!! no more static or glitchy camera movement. I will have a drink on you tonight;)