This site requires JavaScript, please enable it in your browser!
Greenfoot back
emre.kilic
emre.kilic wrote ...

2014/5/6

Implemate a robot

emre.kilic emre.kilic

2014/5/6

#
hellow. i am new in the business robots. hoooow i can implemate A BOMB !!!!!!!! This bomb should remove another robots ! pleasem send me the editor. thx bro
emre.kilic emre.kilic

2014/5/6

#
heeeelpp
emre.kilic emre.kilic

2014/5/6

#
exuce mee i must do that for school.
AIMrOrange AIMrOrange

2014/5/6

#
You can do this like that: Add the bomb whenever i should and let it do an animation. The animation itself should contain this code:
1
2
3
4
5
if(getOneIntersectingObject(Robot.class)!=null)
{
Robot robot = (Robot) getOneIntersectionObject(Robot.class);
getWorld().removeObject(robot);
}
Next time pls try to write your problem with more patience, i dont think anybody wants to help you if you write it like that ;)
You need to login to post a reply.