Actor values not updating after destroy?

ThreepwoodThreepwood Member Posts: 30
edited November -1 in Working with GS (Mac)
A simple question here.

I have an actor and I use display text to show its self.Position.X every frame. When it's dead I destroy it and an ai manager spawns another actor.

On every subsequent actor, the display text no longer updates and it simply shows the value of the previous actor?

I can't figure this out. Might be something simple but may be a bug in GS? Each actor, destroyed or not, should be a new instance and the display text should just show that new actor instance value.

Comments

  • Rob2Rob2 Member Posts: 2,402
    having a quick look at this there does seem to be something strange going on...I am getting distinctly random behaviour in a display text on a spawn.
  • ThreepwoodThreepwood Member Posts: 30
    Yeah, it really seems too simple to mess up. You're just printing a value of the actor. Clearly that value works at a low level because the actor moves around the screen. I just can't get Display Text to display the number properly after the first spawn.

    This is some of the most basic level debugging you can do and is the equivalent of a printf in C and it doesn't work in GameSalad? I know it's beta, but this is more like pre-alpha issues :)
Sign In or Register to comment.