I am stuck and would need some help, i have an spaceship and want it to automatic shoot small laser beams when game is running. And i am stuck on how to do this. My first thought was to make an qml with the name laser.qml where i define the laser and have an function that moves the laser up in the y-direction and when in my Ship.qml i spawn this laser. But is stuck because i dont know how to do this? Is my thinking right or should i do this some other way?
If there is an tutorial about this please point me in the right way=)