Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!


OverviewFelgo 2 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.