Announcement

Collapse
No announcement yet.

UMG: Segmented type of bar.

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

    UMG: Segmented type of bar.

    Hey guys,

    Back in UDK, we have ammo bar that is segmented, shown in the gif below.



    back in flash/actionscript, we can do this by having the bar shown in frames and increase/decrease the bar through gotoandstop();

    I want to achieve similar method in UMG. how would I go about it in this case?

    #2
    About every umg tutorial shows some stuff with bar.
    Bars (and almost everything in umg) can also display warped (repeating) textures/materials.
    All you need to do is calculate width of bar, then calculate percentage that single bullet (item) occupies and change bar at exactly those increments.

    Comment


      #3
      I guess what you could do is set the progress bar height to the height of the image and the width as the number of images * the image width. Ammo remaining / mag size should have the progress bar go up and down in the increments needed for that effect automatically since it is scaled to how many bullets fit in a mag.

      Be sure to share your solution. I'd like to see if it is possible myself.

      Comment

      Working...
      X