So Im trying to make an upward scrolling platformer, and I need a way to delete the score counter and hide the death screen when a player dies and restarts. However, those objects aren’t sprites. Is there still a way to delete them? Answer this is just an example because you have not provided any code :'( you have to
Tag: 2d-games
getting the current color of the visible pixel in the pygame module
I am using PYgame to create an environment with multiple cars. etch car has its own radar where it can check the distance between obstacles. the problem that I am having is, how to get the color of a pixel. so if a moving car has the color purple and it is currently over the [x,y] Pixsle I will get
Creating a Asteroid type game, problem is when player waits to press play button many asteroids spawn instead of controlled amount
About 500 lines of code, so to make it easier to read I believe the bug comes from _update_asteroids(self) function. Simply put, when the user is in the paused game state and must press play, if the player decides to wait lets say a minute. A minutes worth of asteroids will spawn at the exact same time. I believe this