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

Forums

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

Tagged: , , ,

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

    Isak

    Hello,

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

     

    /Isak

    #15544

    Alex
    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.

    Cheers,
    Alex

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