How do I make an ammo counter

Just started using Construct 2? Post your questions here

Post » Sat Mar 15, 2014 9:10 pm

I want to make an ammo counter in my game I believe the best best choice would be to use a global variable. Does anyone know a better way? The global variable works fine. I'm just curious.
B
6
S
1
Posts: 47
Reputation: 759

Post » Sat Mar 15, 2014 9:58 pm

You could also use an instance variable if you wanted your ammo count tied to the object on screen. So if the object on screen is destroyed and you spawn a new one it will will start with the default value of your instance variable instead of needing to reset your global variable.
B
17
S
4
G
3
Posts: 172
Reputation: 1,933

Post » Sun Mar 16, 2014 11:03 am

I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests