Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business


OverviewFelgo 3 Support (Qt 5) › How to spawn lasershots continously?

Tagged: , , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #15542



    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=)




    Felgo Team

    Hi Isak,

    you could have a look at the CarChallenge demo game in the examples folder of your SDK. It features shooting rockets by creating rocket entities at runtime using the EntitiyManager, this might be what you need. Have a look at the Car.qml and Rocket.qml files of that demo specifically.


Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded