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

Forums

OverviewFelgo 2 Support (Qt 5) › How to create an entity at another entity

Tagged: 

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

    Isak

    Hello,

    I have been trying to create an entity(an explosion) the x and y but it won’t work. I have one entity that collides with another and one of them when starts and functions that are supposed to create an explosion where the enemy entity was. i have:

     

    function spawnExplosion () {
    
                getEnemyIdX = Asteroid.asteroidPosX
    
    
    
                entityManager.createEntityFromUrlWithProperties(Qt.resolvedUrl("Explosion.qml"), {"x": Asteroid.asteroidPosX, "y": 100})
                console.log(getEnemyIdX)
    
            }

    I know i only have the x position but wanted to try it, am i all wrong here? How is the best way to create an entity on the same position as another?

     

    /Isak

    #20148

    Günther
    Felgo Team

    Hi Isak,

    As this is a very use-case and project specific question, we can only help with dedicated coding support, or e.g. develop features for you! One of our devs can take care of it with the purchase of a support package. Just get in touch at support@felgo.com.

    Best,
    Günther

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