Hi guys, i need help. i wanted to make a PvP spaceship game with two players shooting at each other from the side of the screen. I have the shooting part down but i the bullets currently spawn in a stream that looks more like lazer at this point.
my code for player 1 shooting currently looks like this
How would i make them spawn at something like 1 second intervals?
public void shoot()
{
if (Greenfoot.isKeyDown("space"))
{
getWorld().addObject (new Bullet(), getX(), getY());
}
}
