I wanna make a number according to the rounds in a magazine and an alert pop up when you run low on ammo.
Something on the lines to this images:
I wanna make a number according to the rounds in a magazine and an alert pop up when you run low on ammo.
Something on the lines to this images:
and what problems / questions do you have with it?
i dont know what im doing, (the first 12 is a text with no code
I think the page below shows exactly how you can achieve this. It is up to you to translate this into your own project.
https://developer.playcanvas.com/en/tutorials/ui-elements-stats-counter/