#2 | 18-07-24 | Player Shooting
Hello!
Since it's been months since I last touched a project, I'm out of practice. But I've managed to create the basic shooting mechanic for my game.
I used a coroutine with a delay to create the shooting mechanic.
The projectile's code is independent from the player. Once spawned, the projectile will move indefinitely in the upward direction, relative to the rotation it was spawned at.
I have two options when it comes to making the projectile self-destruct once it's no longer in the scene. The projectile script can have code to make it destroy itself after certain amount of time, or, the scene can have a barrier that destroys objects that touch it. As development progresses, I'll decide which to use.
Thanks for reading!
Get Hit That Target!
Hit That Target!
Top down 2D target shooter!
Status | Released |
Author | Ice Diamond Studio |
More posts
- #21 | 11-08-24 | PostmortemAug 12, 2024
- #20 | 11-08-24 | Project EndAug 12, 2024
- #19 | 11-08-24 | Planner & GDDAug 12, 2024
- #18 | 06-08-24 | Beta BuildAug 06, 2024
- #17 | 06-08-24 | Improved GraphicsAug 06, 2024
- #16 | 05-08-24 | Extra ScenesAug 05, 2024
- #15 | 05-08-24 | Multiple TargetsAug 05, 2024
- #14 | 31-07-24 | High ScoreAug 01, 2024
- #13 | 29-07-24 | Planner & GDDJul 30, 2024
- #12 | 28-07-24 | Alpha BuildJul 28, 2024
Leave a comment
Log in with itch.io to leave a comment.