Hey Guys,
im working on a project for school and i need your help.
im programing some kind of egoshooter. There are some objects moving around and the user is managing a crosshair. Now i want the objects to disappear when the crosshair is on that object while im pressing the space bar.
My idea:
if (Greenfoot.isKeyDown("space"));
{
getWorld().removeObject(this);
}
also somehow the location of the crosshair has to be included but i dont know how to do it.
Any suggestions?