and the bullets have to spawn on the coordinates where the Gamer was when i pressed a :D
i write now:
if(Greenfoot.KeyIsDown("a")
{
addObject(new Bullet());
}
but i need teh coordinates :)
Thanks for help :)
@gdwd3, it appears that the code is being placed in a sub-class of World. What is needed is a reference to the Gamer object; whether it be in an instance field that is set when the Gamer object is created or obtained through method calls when needed.