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.

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
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support