Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

July 18

  • Create a basic shape (square) bullet, with two frames to simulate some kind of fire behind it
  • Learned how to instantiate a bullet when pressing LeftControl or the X Button in a XBox Control Pad (what I use on PC)
  • Learned how to instantiate the bullet at the front of the spaceship
  • The bullet fires when pressing the button once, and I learned how to measure time to fire next bullet (I made this because I want to shoot a big bullet when pressing fire for a while, really want to do that I hope I can soon)
  • Made a script for moving the bullet with certain speed, an made the 2 frames animation for it in Unity
  • Learned how to destroy de bullet when is out of screen
  • Learned how to keep the spaceship inside the viewscreen, I am not really convinced if it is the best way (use Math.Clamp and calculate a percentage of borders to keep inside) but I am very comformable with the result



I am really surprised myself with the things I have learned from the Unity User Manual and the https://answers.unity.com site, what a community there and here on itch.io. I am trying to use best practices all I can, so the code is clean and easy to return and modify or extend.

As I said before, I am slow, but the experience is priceless, reading all the others devlogs, and all the help on make things and recommend based of own experiences.

(In the animated gif sometimes dont appear that the bullet comes from the very front of the spaceship, but it is coming right from the little point in front of it)