Ammo bar thing

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By dang_

Hi, I’m really confused about how I can be able to create a text thing that shows how much ammo I have left. Basically, I would like it to start off at 3 and every time the player collides with the balloon it increases by one. I have started it in Canvaslayer. All help is appreciated please.

Hi, based on this question and some others you posted, I think taking the time to go through the official tutorials would really help you getting to grips with Godot. This one makes you build a complete first person shooter game, and it’s easy to follow: https://docs.godotengine.org/en/stable/tutorials/3d/fps_tutorial/part_one.html

Bernard Cloutier | 2020-10-08 00:26

I have, its just my desired outcome sometimes doesn’t fit what the tutorial shows and I can’t ever seem to find a tutorial that suits my idea.

dang_ | 2020-10-08 05:20

The tutorial covers ammo pickups and ammo overlay. From your question, it doesn’t seem like you need anything special or fancy. If you don’t want to read the whole tutorial, you could just download the finished fps and rip out the elements you need.

Bernard Cloutier | 2020-10-08 12:54

I have looked into the tutorial and its 3d which isn’t what I need unfortunately

dang_ | 2020-10-08 22:31

Here’s a platformer tutorial: https://www.youtube.com/watch?v=f2rPvVWGbs8

In that video, he adds coins pickup. Next video, he shows how to update the UI with the number of coins picked. You can easily adapt it for an ammo pickup and counter.

Bernard Cloutier | 2020-10-08 23:15