Dev Log 5 - enemy shooting mechanics 14/05/2024
for this week, i have been working on one of the extra features i wanted in my game which was in my original design. this was to have the enemies shoot back at the player to increase difficulty of the game.
i had started by creating a quick prefab of the enemy projectile and adding a empty object in one of the enemy sprite prefabs. i began the coding of the shooting where i intended on having the bullets fire at random intervals, moving left towards the player.
initially i encountered a slight issue once i tested it. there was no cooldown system so a stream of projectiles poured out of the enemy ship. although quite funny at first it needed to be rectified. with that corrected i then worked on having the bullets damage the player which was just adding that to the health manager code.
i thought this was all completed until i noticed that when the players projectiles collide with the enemy projectiles, this increases the score. but this was actually an easy fix where i added a check to see if it hit an enemy projectile.
Get Starship Struggle
Starship Struggle
Status | In development |
Category | Other |
Author | Eighthsum9798 |
Tags | 2D, 3D, Shoot 'Em Up, Top down shooter |
More posts
- Dev Log 7 - Game launch 04/06/2024Jun 04, 2024
- Dev Log 6 - Big picture mode graphics 21/05/2024May 21, 2024
- Dev log 4 - score system and audio 07/05/2024May 07, 2024
- Dev log 3 - health system, menus and ui functionality 30/04/2024May 07, 2024
- Dev Log 2 - sprites, enemy variation, spawning 23/04/2024Apr 23, 2024
- Dev log 1 - movement and shooting 16/04/2024Apr 16, 2024
Leave a comment
Log in with itch.io to leave a comment.