• Do not use Works in Progress as a way of avoiding the releases system! Works in Progress can be used for sharing early betas and for getting suggestions for improvement. Releases of finished content are not allowed in this forum! If you would like to submit a finished addon, click here for instructions on how to do so.

Dumbventure ...TOO!? El Papero Mareio - *In English! - Progress Topic

Status
Not open for further replies.
@D00D64: Some platformers like Super Mario World and SMB3 have a camera system which constantly judges whether it should vertically follow the player while Mario is in the air. The way the camera works is that it does NOT follow Mario vertically if he is just jumping up and down. The camera will only start to follow Mario's y position when he:
* is climbing a vine
* starts falling below the camera's "normal" position
* does a sprint jump
* goes above the screen

I believe this camera "y-snapping" variable also resets whenever Mario is on the ground. That means the camera won't follow Mario while he is jumping up to another on-screen platform, but it will scroll up to Mario once he's landed on it.

I coded this camera system into my GM8/GM:S platformer because I think it's a terrific system; even though mine isn't a jump-on-heads platformer like Mario's games, from the looks of it you're just trying to make basic platforming less frustrating, so I think you could benefit from trying to code these dynamics into your camera.
 
Yeah, I wanted something like that, but I wasn't sure how to do that second part, which is what I really want. I thought of this as a kind of compromise, but I'd rather do that. I'll probably figure it out eventually. It's especially important in a game like this.
 
Yeah, I wanted something like that, but I wasn't sure how to do that second part, which is what I really want. I thought of this as a kind of compromise, but I'd rather do that. I'll probably figure it out eventually. It's especially important in a game like this.

I don't know if you've done this already (or if you even can), but in my game, I tell the 'camera' to follow an invisible object, rather than the player itself. The object will move itself to be at or near the player based on certain conditions (eg: is player on the ground? y = player.y ... or: is player running? x = player.x + 64 ... etc.).
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top