How to make ammo count like Far Cry 3

I wondering how to make Far Cry 3 style of ammo count.

I already did it in another project but way i did it is with bunch of branchs like if ammo count is less then 9 then set opacity of bullet image 12,11,10,9 to 0.5 if false then if ammo count is less then 8 and go on.

So is there easier way to do it

Didnt find a better pic but ig you can understand on what i mean

200px-Grenade_icon_fc3

1 Like

Hi Player 003,

I did a Youtube search for “unreal engine dynamic ammo counter” and found this community tutorial that shows a good idea of using a progress bar.

At :47 he selects ‘Configure for Retro Sprites’ on the texture. I’ve never seen that before. (Maybe it’s just from an old version of UE) but some experimentation with masking should get you to a good spot.

Hope that helps!

Probably better to have 2 images.

  • One with the bullets 100% opaque inside a canvas
  • Second with row of bullets transparent

Just scale the the canvas of the opaque bullets with the right values







1 Like

Tnx but i found one with progress bar more easier

Well mark it as resolved at least so other people know it’s not open.