Problem with DisplayText and attributes on instanced actors
lootefisk
Member Posts: 3
Hi,
I just started using gamesalad and I love it so far. However, I've run into an issue I can't figure out.
I've made a simple tower defense game. A box at the start of the level spawns enemies that have an attribute (health) set to 10. The health value is displayed on the enemy with DisplayText. After the first enemy has been killed the rest of the enemies spawn with incorrect health displayed (from 0 to 8), but the actual health is correct because it takes the same amount of hits to take them down.
Any hints on how to fix this would be appreciated!
I just started using gamesalad and I love it so far. However, I've run into an issue I can't figure out.
I've made a simple tower defense game. A box at the start of the level spawns enemies that have an attribute (health) set to 10. The health value is displayed on the enemy with DisplayText. After the first enemy has been killed the rest of the enemies spawn with incorrect health displayed (from 0 to 8), but the actual health is correct because it takes the same amount of hits to take them down.
Any hints on how to fix this would be appreciated!
Comments
Health is an attribute on the actor. The actor is spawned every n'th second from another actor and moves to the end of the level. The five or so first enemies updates correctly (from 10 to 8 to 6 etc) when inflicted with 2 damage, put at some point the display blows up.