Display Text not working?

Okay it works when I do: ``You Got: ``..game.score

and it says when the game ended: You Got: (SCORE HERE)

But, I wanted to replace You Got with a custom font so I did:

BuzzyBeeScore.image..game.score

But, it wont work, it only shows the score, not the custom image I want ):

Please help!

Best Answer

  • gyroscopegyroscope I am here.Posts: 6,598
    edited February 2014 Accepted Answer

    Hi @Pyrite The clue to why the Display Text behaviour can't show an image is included in the name of it.... ;-)

    It can only display text or attributes....

    Just place your image in an actor on-screen with the actor with the display Text behaviour next to it.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Answers

  • PyritePyrite Member Posts: 47
    Uhhhh, I have problems with Spawn Actor not working. Any other way?
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2014

    It doesn't involve any spawning. If your image "BuzzyBeeScore.image" is just an unchanging image, then make an actor , put the image in it and drag it onto the scene in the scene editor. Next to it, put your Display Text behaviour in its actor.

    But if you are meaning you want a custom font to use as your scoring system, then you don't need game.score to show via a Display Text behaviour.

    Here's one video (there are a few others around) showing the use of custom font for scoring:



    But, to be fair, this is fairly advanced stuff and you do need to be very conversant with GameSalad Creator to get to grips with it.

    If this is a bit daunting, then just stick with showing your score via a font chosen in the Display Text behaviour.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • PyritePyrite Member Posts: 47
    When I just do all of that, it lags up and closed the program q.q
Sign In or Register to comment.