itch.io is community of indie game creators and players

Devlogs

Week 9 New challenger approaching

Octopies
A downloadable game

So for our latest update we wanted to implement shooting mechanics, enemies and an end puzzle.

My part was the shooting and enemy mechanics and I was wondering how to do that. Thus after watching a few tutorials my best bet for making a gun that can shoot would be to make a bullet prefab and load it everytime the button gets pressed. Then add some velocity to it and a correct spawn point and voilá our character can now shoot. Although as you can see in the video we will have to limit the amount of times he can shoot either by ammo or having a reload timer but that is a problem for future me.

Now for the enemy mechanics I made a script that calculates the distance from our character and the enemy character so it will consistently travel towards the player. However by doing this the enemy speeds up the further it's away from the player which is fine, but it will also slow down when near the player which is less fine. We will be fixing this in the coming week but for now it looks pretty nice.

Leave a comment