Text Update Issue

0 favourites
  • 11 posts
From the Asset Store
Fantasy Game includes more than 600 sound effects inspired by hit computer games like World of Warcraft and Diablo.
  • Sorry if in wrong place, made account to post

    I created a GUI HUD thing to show score/hp and it worked fine.

    I then created a start up screen for my game and bam the hp dont show up!

    It seems to be an issue with the variable original value because it wont show anything but 0 as default.

    (FYI instructions doesn't do anything ATM)

    I'll upload the file see if any gurus can help

    Thanks, don't face palm too hard lol

  • you have it so that when 2 zombies collide, 1 is taken from playerHealth. And there's lots of collisions so.. the number looks right (as in, it quickly goes negative). I assume you want to check for Player colliding with ZombieKid

  • Sorry for the mistake, I was using a backup to return to state for upload.

    The problem I have persists even after changing it to:

    zombie, on collision with player > -1 from health

    The problem is in game health displays as "Health: " when it should say "Health: 45" if you had 45 health for example.

    There is similar code for the score that works fine.

    set text to > "Health: "& playerHealth

    D: Derp!

  • looks ok to me? Or I'm not getting it

    [attachment=0:mrs6geoo][/attachment:mrs6geoo]

  • Thats really strange! I've got no number displayed for some reason while it works for you?

    For me it simply just says "Health: "

    Perhaps I need to re-install construct?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thats really strange! I've got no number displayed for some reason while it works for you?

    For me it simply just says "Health: "

    Perhaps I need to re-install construct?

    well.. that's kind of extreme but it's up to you. I'd try a new project with a text object, or one of the sample, and see if it works.

    try the one I saved:

    [attachment=0:baxpf4zd][/attachment:baxpf4zd]

  • I'd guess it's the font you're using and the size of your font box. The number is probably just going outside your font box and getting cut off. Try a different font or a bigger box.

    Down with text, up with Spritefont!

  • I'd guess it's the font you're using and the size of your font box. The number is probably just going outside your font box and getting cut off. Try a different font or a bigger box.

    Down with text, up with Spritefont!

    I was going to suggest that except it works for me which is strange.

  • I was going to suggest that except it works for me which is strange.

    Yeah, but in your screenshots, his font looks completely different than yours. So he's probably using some font that you don't have, so yours defaults to a different one that happens to fit in the box.

  • >

    > I was going to suggest that except it works for me which is strange.

    >

    Yeah, but in your screenshots, his font looks completely different than yours. So he's probably using some font that you don't have, so yours defaults to a different one that happens to fit in the box.

    hey yeah

    edit: well actually I don't think he had posted his screenie before

  • The box size makes sense, I'll try this when I get home!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)