if (Greenfoot.isKeyDown("Enter")) { if (getImage().equals("Teddy_Sword_colour_smaller_rightlook.png")) { addObject(new Slash(),getX(), getY()); } }
if (Greenfoot.isKeyDown("Enter")) { if (getImage().equals("Teddy_Sword_colour_smaller_rightlook.png")) { addObject(new Slash(),getX(), getY()); } }
getWorld().addObject(new Slash(), getX(), getY());