Hi, I’m making a platformer game so there will be plenty of jumping in the gameplay, I’m using the smooth camera behavior and each time the player jumps the camera goes up and then goes down when the player lands on the ground, with a lot of jumping this can get dizzy real quick.
What I want to do is basically have the camera not react to the player jumping AKA not going up and then down.
I want it to only go up when the player lands on a higher platform, and to go down when the player goes to a lower platform, any way to achieve this?
Remove smooth camera behavior
Change camera X position with lerp expression
And same thing but with Y
Now to X camera pos you add no condition
BUT to Y camera pos event you add Player is on floor
What’s a lerp expression? Can you show this in an event?
Hello there! It is not necessary for you to remove the smooth camera behavior, instead, you can go into the smooth camera behavior and deselect the “Follow on Y axis” to disable camera movement going up and down!
This works for the jumping, only thing I need is for the Y position to update when the player lands on a higher or lower floor, so they don’t go offscreen
Hi!
You could do something like this:
Yeah this is what I had in mind, it worked! Thank you all!
This example does it:
https://editor.gdevelop.io/?create-from-example=platformer-moves
hi! i couldnt figure out how to actually make a post so i’ll just ask here, i put the “dash” function on my player but the last frame of the dash is him facing left everytime and i couldnt figure out how to fix it. please help i’ve been stuck for 3 days!
You should make a post, just go to topics and there should be a “New Topic” button in the very top right, you’ll get more help there, plus, you should always check if a post like yours has already been made so people don’t have to answer the same questions over again.
Ooo this looks great too, I’ll check it, thanks
dont have “new topic” button.