I was looking at some tutorials by mrligocki on youtube and he shows us how to make shoot bullets but he never showed us how to fix it so when we click LMB (left mouse button) it only shoots one bulletThis is the video I watched to get this far into getting my character to shoot
This is the code he tolled us to write down.
I need help!!!
DAN POST HELP ME!!!
1 2 3 4 5 6 7 8 | public void shoot() { if (Greenfoot.getMouseInfo() != null ) { if (Greenfoot.getMouseInfo().getButton() == 1 ) getWorld().addObject( new Bullet(jeromeRotation), getX(), getY()); } } |