Hey! I'm having some trouble with getting my character too shoot can someone help me? The Actors im using is Player_2 and Shots, the world they are going in is called Spike_Out... plz help... my error is in the "addObject"
1 2 3 4 5 6 7 8 9 10 11 12 | public void Shoot() { if (Greenfoot.isKeyDown( "space" )) { Player_2 shooter1 = new Player_2(); int X = shooter1.getX(); int Y = shooter1.getY(); Shots shot = new Shots(); shot.setRotation(shooter1.getRotation()); addObject(shot, X, Y); } } |