Moving around the world we create is fun. But when the player is moving outside the view is not fun anymore. Making the camera follows the player is a way to prevent the player moving outside the view.
Directly make the camera follow the player feels ... limited? its like the player sights is limited to half of the screen when moving around.
My second attempt is to make an object that move ahead the player and goes back to the player when no key is pressed.
But there's a glitch in it that if the key left is pressed and then the key right is being pressed afterwards, no no-key event in between of those two event. Because of the key is being pressed one over another without releasing the key, the object if fall way behind the player.
So i make sure that the object is always in front of the player. But the left and right position transition is kinda jumpy and its very annoying.
And after thousand of attempts 😁, finally the result is satisfying. And i got an up and down sight as a bonus.
And yup this is it.
My personal notes about Camera View. 🙂
No comments:
Post a Comment