game development questions
Posted: Sat Dec 04, 2021 4:47 pm
Hi everyone. I need some advice on a game I'm making for a class project. I'm making a basic space shooter game. This is my first time making one from scratch. Currently, I am having trouble with:
I usually have to shoot an enemy several times before it appears off the screen. I can't figure out how to fix my collision detection.
When I shoot one enemy, multiple enemies will disappear from the screen. Also, if I shoot the first enemy that appears at (0,0), all the enemies will disappear and the "you win" message will appear on the screen. How do I fix this?
I would also like to include a second collision detection function that makes the game over screen appear if an enemy ship touches the top of the player. What's a good way to get started with this?
I have one sound effect that will play when the game over screen appears and another one that will play when the "you win" message appears. However, I want the sounds to only play one time instead of over and over, which is what they are currently doing. I can't figure out how to do this.
I usually have to shoot an enemy several times before it appears off the screen. I can't figure out how to fix my collision detection.
When I shoot one enemy, multiple enemies will disappear from the screen. Also, if I shoot the first enemy that appears at (0,0), all the enemies will disappear and the "you win" message will appear on the screen. How do I fix this?
I would also like to include a second collision detection function that makes the game over screen appear if an enemy ship touches the top of the player. What's a good way to get started with this?
I have one sound effect that will play when the game over screen appears and another one that will play when the "you win" message appears. However, I want the sounds to only play one time instead of over and over, which is what they are currently doing. I can't figure out how to do this.