- Game.love
- (861.36 KiB) Downloaded 83 times
Why is my character shaking?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Why is my character shaking?
I first though the issue might have been my camera but I realized that it was just with the rocket itself. I am using bump.lua; however, anytime I move the player (the rocket) it shakes. I have never experienced this before and I am honestly confused on how I should go about solving the problem. I checked the code and everything seems fine, I just want smooth movement with some motion blur rather than a choppy shaky movement animation.
Re: Why is my character shaking?
I resolve the shake problem changing your code from this:
to this:
the 'follow' function from STALKER-X need to be called before the 'update' apparently...
Code: Select all
cam:update(dt)
cam:follow(Player.x, Player.y)
Code: Select all
cam:follow(Player.x, Player.y)
cam:update(dt)
Re: Why is my character shaking?
Thanks for the advice! So it wasn't a problem with physics, I just needed the camera to follow the layers position right?_JM_ wrote: ↑Wed Dec 27, 2023 2:37 pm I resolve the shake problem changing your code from this:to this:Code: Select all
cam:update(dt) cam:follow(Player.x, Player.y)
the 'follow' function from STALKER-X need to be called before the 'update' apparently...Code: Select all
cam:follow(Player.x, Player.y) cam:update(dt)
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 2 guests