How do I make ammo show

Get help using Construct 2

Post » Tue Jun 23, 2015 4:20 pm

So i know how to make ammo using instance variable and subtract one every time the player shoots how do I show a number on screen so a player knows his amount of ammo left.
B
8
S
1
Posts: 76
Reputation: 646

Post » Tue Jun 23, 2015 4:24 pm

Add a text-object

system every tick
> text set text to : "Ammo Left: "& player.ammo

assuming the instance variable is called ammo..
You wouldn't have to set it every tick, offcourse, only when changed, but this is just an example..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jun 23, 2015 4:30 pm

Thanks I heard the text object acts up can you do this with sprite font
B
8
S
1
Posts: 76
Reputation: 646

Post » Tue Jun 23, 2015 5:07 pm

gdog105 wrote:Thanks I heard the text object acts up can you do this with sprite font


yep..
same action..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jun 23, 2015 5:09 pm

Thanks man
B
8
S
1
Posts: 76
Reputation: 646


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests