Discord
Login
Community
DARK THEME

So Much Bullets skskskskks

I don't know why but i put the code of the bullet in the microscript Object Oriented Programming and, when i click in the buttom to shot, the code dont't stop of spawn bullets until i stop press the buttom, and i wanna know how can i make to shot one for one the bullet.

Link Of My Game: https://microstudio.io/rianstar/ghosthunt/

THANKS TO MUCH FOR THE HELP.

ghost file

ghostUPDATE = function()
.......
  ghostCooldown()
  if (keyboard.X) and (ghost.cooldown == 0)then
    ghost.bullets.push( new Shot( ghost ))
    ghost.cooldown = 60 // frames 
  end
.......

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community