Hey guys, I'm making a platform game similar to Super Mario in Pygame and I want to add platforms i.e. I have a background picture that has platforms drawn on it. I then want to make it so he can only go down as far as the platform, and as the platform goes up he has to go up.
Is there any way I can do this like:
If player at co-ords(12,45) to (20,45) then:
player movement not lower than (0,45)
or something to that effect. This is the only way I can think of doing this.
Any help would be greatly appreciated :)