I want to make the bullet to go sideways from specific location , but it is only going up or down.
How do i make this happen?
![Twitter](/assets/twitter-4e19209ef84344ee0c433f4c7bad8d49.png)
![Twitter.hover](/assets/twitter.hover-1fb19a5bafc50deace8f88eaec867845.png)
if (Greenfoot.isKeyDown("x")) { if (timer == 0) fire(); } } public void fire() { getWorld().addObject(new bullet3(), getX() -14, getY()); timer = +5; if ( timer >= 5 ) timer = 0; }