Custom Font Number not Working

I did everything in tshirtboths video, but it still doesn't work.

Here are some pics:

http://gyazo.com/8b30881e7c612c902efd5ce4fe717300
(Pic of the number Actors (0.png, 1.png, ect)

http://gyazo.com/384e6d40376c110422ced587872a9b69
(Pic of the 0.png being put onto the game!)

http://gyazo.com/f02c555c88a9ad4d00fc4c4b86d5b408
(Pic of me playing the game, but the 0 nor other numbers show up! (When I was playing it fully
like going through the obstacles, the score still didn't work!!!!) (It works when I use a normal Display Text)

http://gyazo.com/9e67f550b609a65cd5df5ed0108ee738
(My Constrain Attribute inside of the 0.png actor!(The code in the vid didn't work so I tried this 1 in the pic!)

http://gyazo.com/b238b6967c3e362fa51a3626a7efed06
(My pic of my div integreter)

This is what I've done, but it doesn't work! Please help! Thank you!

Answers

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited February 2014
    Two things:

    Try constraining self.Image to game.score without the ..".png" (this is optional, really, and should work either way but try it without it).

    Add a DisplayText behavior with self.Image so that you can watch what this is being constrained to. Then report back with the values you're seeing.

    Also, is your game.score attribute an integer? Or real?
  • PyritePyrite Member Posts: 47
    I'm seeing same results (+ I only have that self.image thing for the 0's and that Div thing only for the 0's)
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    So what does the DisplayText show? Try it for each digit. Also try creating a new actor and doing a Change Attribute self.Image to "5" and another actor with Change Attribute self.Image to "5.png"

    Of the two new actors, which one(s) work?
  • PyritePyrite Member Posts: 47
    The Display Text shows the score. And, I didn't understand what you said after. (I'm a newbie). I am using version: 0.10.4.1 Windows.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Can you send me a link to download your project file from a file-sharing site?
  • PyritePyrite Member Posts: 47
    Uh, got any file sharing sites that I can use? I never shared a file before, and can't find 1 for some reason :/
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I'll take a look later when I have a chance.
  • PyritePyrite Member Posts: 47
    Okay, mind if I ask (How long will it be?)
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Not sure... I'm not at home. Could be 5 hours...

    There are other people here who might be able to help and I'm sure they'll post here if they can.
  • WhySoCREATIVEWhySoCREATIVE Member Posts: 75
    edited February 2014
    Wheres the project file @pyrite ? The link doesn't link to the file.
  • PyritePyrite Member Posts: 47
    It works for me :/
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    It says I need MediaFire Pro to download batch files. Please upload it again as a .zip file instead. When uploading or sharing GS project files it is always best to compress them as .zip files first.
Sign In or Register to comment.