1 decade ago by munho
Here's the easy of it.
I have some fire. When an entity hits the fire I call other.kill() in the check function. After this I try to spawn my "Burn" entity, but it actually freezes the game. It doesn't seem to have an x value. So this only works when I put hard numbers in for x and y. Any thoughts why this might be the case?
I have some fire. When an entity hits the fire I call other.kill() in the check function. After this I try to spawn my "Burn" entity, but it actually freezes the game. It doesn't seem to have an x value. So this only works when I put hard numbers in for x and y. Any thoughts why this might be the case?
check: function( other ) { other.kill(); ig.game.spawnEntity( EntityBurnUp, 8, 170 ); //ig.game.spawnEntity(EntityBurnUp, x, y); }