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

2019/3/14

How do you check if one actor is in front of another?

MrMinestrone MrMinestrone

2019/3/14

#
I am making a game in which if you crash into another actor the other one gets deleted. How do I do this?
danpost danpost

2019/3/14

#
MrMinestrone wrote...
I am making a game in which if you crash into another actor the other one gets deleted. How do I do this?
Do you mean like this:
if (isTouching(Actor.class)) removeTouching(Actor.class);
placed in code after the actor moves?
You need to login to post a reply.