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?
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
Yeah, good point! This becomes kind of a game design question–there’s a couple ways I can think of to prevent infinite reloads.
There’s pros and cons of each based on the details of the game you’re building, and this is definitely not a complete list–I’m sure there’s tons of alternatives I haven’t thought of!
Thats nice!
Thanks everyone!