J
Joltout
Guest
So basically, instead of having my games camera follow my character, it's following an invisible object that is created on top of my character that's currently set at x/y = character's.x/y.
But upon creation, I would like it to pan ahead of the character x distance, but smoothly with deceleration, stopping at a precise +x distance away from the character and then panning smoothly the other way to -x when the characters direction changes (this is a platformer btw and y doesn't matter at this stage).
So I have a global variable set up that is linked to the characters direction variable (and image_xscale), "global.previous_dir = previous_dir;", so previous_dir is = to either 1 or -1. Outside of that, I have no idea how I can set up the decel/accel mechanics, final position and recognizing the direction swap for the camera. Any help? I've been stuck on this for a while lol
But upon creation, I would like it to pan ahead of the character x distance, but smoothly with deceleration, stopping at a precise +x distance away from the character and then panning smoothly the other way to -x when the characters direction changes (this is a platformer btw and y doesn't matter at this stage).
So I have a global variable set up that is linked to the characters direction variable (and image_xscale), "global.previous_dir = previous_dir;", so previous_dir is = to either 1 or -1. Outside of that, I have no idea how I can set up the decel/accel mechanics, final position and recognizing the direction swap for the camera. Any help? I've been stuck on this for a while lol