Microsoft MakeCode

Projectile limit

Hey

Is there a way where you can set a number of projectiles. So for example if you overlap with something you get 5 projectiles you can use?

Yep! Try this code:

Basically you save the number of projectiles remaining in a variable, and decrease variable that every time you fire. Then when you overlap the reload mechanism, you reset “projectiles remaining” to the full amount.

Really nice! I’ve always tried doing this before but this is unbelievable!

Actually i want to say that you could stand at the chest and earn infinite ammo