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

2016/4/22

So i want it to be if something is touching gaster it does something but i dont have the health set up yet so please help

Walker Walker

2016/4/22

#
 public boolean touchingObjectGaster() 
    {  
     return (getOneIntersectingObject(Blast.class) != null);
     
      
    }
danpost danpost

2016/4/22

#
if (touchingObjectGaster())
{
    // do something
}
That is all that can be supplied at this time with what you show. You should set up the health before anything more can be done here. There are plenty of discussion thread on setting up health for an actor. Just run a search in the title bar above.
You need to login to post a reply.