Hey, i have a Problem with an actor wich should spawn another Actor
why dose it not work?
1 2 3 4 5 6 | if ( "left" .equals(Greenfoot.getKey())) {setRotation( 0 ); Normalbullet normalbullet = new Normalbullet(); getWorld().addObject(normalbullet, getX(), getY()); normalbullet.setRotation(getRotation()); }}} |