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