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

2015/6/16

I need help!!!

Ceomzzy Ceomzzy

2015/6/16

#
Hi! If actor1 eat an specified object (doesnt matter) if he touch actor 2(after he ate the object), actor 2 is removed else if actor 1 didnt eat the object and he touch actor2 nothing happens. How do i do that????
danpost danpost

2015/6/16

#
I could give you an elaborate solution to this. However, it may end up to be much more than what is really necessary. With more information about your scenario (the objects in question), the best solution for the situation would be more obvious. Like, if there is only one object of the type that is first eaten in the world, then you can just check for any of that type object in the world to determine if an actor2 object should even be tested for (that is, provided that the type object first eaten is in the world for the entire time the eater, actor1, is in the world up until the time that it is eaten).
You need to login to post a reply.