Hi everyone,
Whenever I try to fire a bullet, it shows up in the world and rotates, but it won't move. It just stays completely stationary. I'm very new to all this, so any help would be greatly appreciated! Thanks!
if (Greenfoot.isKeyDown("space"))
{
fire();
}
private void fire()
{
Bullet bullet = new Bullet();
getWorld().addObject(bullet, getX(), getY());
bullet.setRotation(getRotation());
bullet.move();
}
