Problem with DisplayText and attributes on instanced actors

lootefisklootefisk Member Posts: 3
edited November -1 in Working with GS (Mac)
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!

Comments

  • ThreepwoodThreepwood Member Posts: 30
    I've had this too and can only assume it's a bug. DisplayText on new actor instances seems to be broken. I found that it displayed the info from the last instance and never changed.
  • RHRH Member Posts: 1,079
    Using GS to create a good Tower Defence game is by no means easy :) Is the health a global or character based attribute?
  • lootefisklootefisk Member Posts: 3
    Not saying it will be good! :p
    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.
  • lootefisklootefisk Member Posts: 3
    I uploaded the "game" so you can see what I mean.
Sign In or Register to comment.