Mousedown executes code twice

BlitzMax Forums/BlitzMax Beginners Area/Mousedown executes code twice

You need to reset your counter if the mouse is not down, i would go for code more like this:
if mousedown
  if shotdelay
    shotdelay=shotdelay-1
  else
    fireshot
    shotdelay=10
  endif
else
  shotdelay=0
endif