Announcement

Collapse
No announcement yet.

DrawText HUD Logic help?

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

    DrawText HUD Logic help?

    Hi, I'm working on inventory for my hud, and I'm trying to draw text over each inventory slot (also want to create a counter for each slot to be used as an index for the array for the actual inventory items). The problem that I'm running into is it's running through the logic constantly.

    Obviously I'm not understanding how the HUD class works as this really wasn't the expected result; each slot does appear to be appear to be added to by one, but I don't understand why all the DrawText's are being added to by one constantly.

    Any help is appreciated.

    Attached is the blueprint+result - the numbers are constantly increasing, for example in another 5 seconds they'll all be 50000+
    Attached Files
    Last edited by skipgamer; 06-17-2014, 04:17 AM.

    #2
    Originally posted by skipgamer View Post
    Hi, I'm working on inventory for my hud, and I'm trying to draw text over each inventory slot (also want to create a counter for each slot to be used as an index for the array for the actual inventory items). The problem that I'm running into is it's running through the logic constantly.

    Obviously I'm not understanding how the HUD class works as this really wasn't the expected result; each slot does appear to be appear to be added to by one, but I don't understand why all the DrawText's are being added to by one constantly.

    Any help is appreciated.

    Attached is the blueprint+result - the numbers are constantly increasing, for example in another 5 seconds they'll all be 50000+
    you're not resetting your Slot Counter variable ... it should probably be done right before the first loop.
    Easy weapons in Unreal Engine 4:
    Check out Realistic Blueprint Weapons

    Currently doing a tutorial series on Vectors and what they are good for.
    Please visit Unreal Unscripted

    Comment


      #3
      Perfect! Thank you very much for the help!

      Comment


        #4
        Originally posted by skipgamer View Post
        Perfect! Thank you very much for the help!
        No problem man, keep on trucking.
        Easy weapons in Unreal Engine 4:
        Check out Realistic Blueprint Weapons

        Currently doing a tutorial series on Vectors and what they are good for.
        Please visit Unreal Unscripted

        Comment

        Working...
        X