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

2020/3/11

Removing an object after it has been hit 3 times

bangtan bangtan

2020/3/11

#
I have not found a way to remove an object after being hit for 3 times, I have only done removing an object after being hit once. How would I make the object disappear after being hit 3 times?
danpost danpost

2020/3/11

#
If the objects hitting the actor are removed when hitting, the all you need is an int hitCounter field (or int health=3). If they remain in the world, it is a bit more involved. Just ask for further assistance.
You need to login to post a reply.