2d Platformer collision

Hey,
I’ve been thinking of ideas and can’t seem to get many solid methods of collision detection.

I have a platformer/tower climber, i want the player to be able to jump up through the bottom of the platforms but not down. I can get that working fine, but its when i want the player to be able to jump back off the platform i’m stumped for ideas.

Does anyone have any good ideas?

Thanks.

What exactly are you stumped with? You just said you were able to implement jumping.

It was a bad question because the answer was staring me in the face. But now im thinking of ways of vertical scrolling. Which would just be a camera position to offset everything to wouldn’t it?

Yay, and I fail at reading follow up posts, don’t I? :smiley:

Ahem, as for vertical scrolling in two dimensions? It could be ‘camera’ position, or at least view position if you’re thinking about regular styled scrolling.

Yep, a yOffset variable is all you need, which you either call translate(0,yOffset) or add it to all entities :slight_smile: