DisplayText bug

TwistedMechTwistedMech Member Posts: 408
edited November -1 in Tech Support
I have been creating a game for my wife and found this odd text behaviour.

I have a global game variable game.LastHighTime which is a text variable.

I can set this variable to “0:00”

In my actor, I have one display behaviour which binds to game.LastHighScore.

The first time the scene loads, it will display 0:00. Anytime after that, I get the default “Hello World!!!” text.

If I delete and recreate the actor, I get the same thing.

Anyone else had this bug and anyone have a work around?

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    Hello World! will show up if the text value is null.
    you have to set it to something, it can't be blank or undefined.
  • TwistedMechTwistedMech Member Posts: 408
    The value was 0:00. In the end I created a self.tmp and did a copy of the game.variable and bound the displaytext to self.tmp. Very odd.
  • BeyondtheTechBeyondtheTech Member Posts: 809
    It's still a little futzy. I tried doing `Display Text: "+"..game.Bonus` and I can't get the plus to show up. Even if I assign `"+"` as a Text Attribute, it won't show up.
Sign In or Register to comment.