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

2012/6/14

Greenfoot Error

Benedict Benedict

2012/6/14

#
when i write this : Terrorist a = new Terrorist(); it sais that its a mistake: constructor Terrorist in class Terrorist cannot be applied to given types what does this mean? thanking you in anticipation
tylers tylers

2012/6/14

#
in the Terrorist class do you have anything where the dots are.
public Terrorist(....) //do you have anything where the dots are.
{

}
Benedict Benedict

2012/6/14

#
oohh, just realized it, thank you but another question, do you have an idea how i make a certain picture interact with an actor ?
tylers tylers

2012/6/14

#
what do you mean?
Benedict Benedict

2012/6/14

#
when a picture of one actor touches another actor
SPower SPower

2012/6/14

#
You probably want to create a new topic for that question, so other people can find it easily whenever they need it.
tylers tylers

2012/6/14

#
use this in in one of the actors you want to use:
getOneIntersectingObject( ___.class) // where the ___ is put the other actors name.
this is an example this is an in a class called somthing.
if(getOneIntersectingObject( ______.class) !=null)
{
remove(this)
return;
}
hope you get it.
You need to login to post a reply.