Apr-25-2020, 09:49 PM
(This post was last modified: Apr-25-2020, 09:50 PM by michael1789.)
The big tip I can offer is to use pygame sprites and pygame's collision detection.
HERE is a video from a tutorial I followed a while ago on making exactly that type of game. I would do it all largely the same if I were to do it again.
He uses pygame.sprite.spritecollide() for detection and the screen scroll happens when your player hits a certain height on the screen. When the player hits that height, all the platform sprites have a number added to their y coordinates.
HERE is a video from a tutorial I followed a while ago on making exactly that type of game. I would do it all largely the same if I were to do it again.
He uses pygame.sprite.spritecollide() for detection and the screen scroll happens when your player hits a certain height on the screen. When the player hits that height, all the platform sprites have a number added to their y coordinates.