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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support