Announcement

Collapse
No announcement yet.

Decimal point when showing a timeline. How to get rid of.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Decimal point when showing a timeline. How to get rid of.

    HI All

    I have a 5 second countdown to when it starts (timeline), but it shows a decimal point. How do I remove this?

    MyHud Script

    Click image for larger version

Name:	Capture.JPG
Views:	1
Size:	59.2 KB
ID:	1142271

    My Timer, simple 5-0 countdown

    Click image for larger version

Name:	Capture.JPG
Views:	1
Size:	37.8 KB
ID:	1142272

    Screen Shot

    Click image for larger version

Name:	Capture.JPG
Views:	1
Size:	27.4 KB
ID:	1142273

    Merry Christmas, 12:32 am Christmas Day here

    Narg
    http://www.seven-mountains.eu/


    #2
    Hello,
    Use after your ABS : floor
    Last edited by Fen; 12-24-2014, 10:26 AM. Reason: right nodes names

    Comment


      #3
      Maybe use int variables instead of floats
      Ben Halpin - Lead Developer - Lazy Games
      Overdosed on Early Access: Overdosed - A Trip To Hell
      Give a 'like' on fb: https://www.facebook.com/Properlazygames Give a 'follow' on twitter: https://twitter.com/ProperLazyGames And why not check out www.lazygames.org

      Comment


        #4
        I can not tell you why, but it works now.

        Click image for larger version

Name:	Capture.JPG
Views:	1
Size:	43.8 KB
ID:	1064505

        Click image for larger version

Name:	Capture.JPG
Views:	1
Size:	63.7 KB
ID:	1064506

        Thank you for your replys'. Somehow someone got in my head and made it right, still not sure how.

        Narg
        http://www.seven-mountains.eu/

        Comment


          #5
          It is because you converted your float to int, then converted int to text. Before you only converted float to text. I had same problem and just did float to in to text and it fixed the numbers.

          Comment

          Working...
          X