#How can I make a gun shoot less bullets.

11 messages · Page 1 of 1 (latest)

mint sierra
#

just create a cooldown timer that controls how long inbetween shots

#

though I would not recommend Instantiating a new bullet each time and would suggest to make an object pool

thick pumice
#

How would I make a object pool.

mint sierra
#

Unity has their own object pool class which I think would be perfectly fine for you to use

#

but there are tons of tutorials out there for you to create your own

thick pumice
#

Okay

mint sierra
#

if that is too advanced then just disregard

#

just know that its not performant to create new objects each time

thick pumice
#

Okay Thamk You.

bronze patrol
#

An object pool doesn't solve the bullet issue