I have a problem with one thing.
I couldnt really find it online or rather not exactly what I wanted.
Its like this.
public void checkForShot()
{
Actor w = getOneIntersectingObject(Shot.class);
if(w != null)
{
health = health -50;
getWorld().removeObject("""""""SHOT"""""""""");
}
if(health <= 0)
{
getWorld().removeObject(this);
}
}
notice the """""""SHOT"""""", because thats what needs to be removed, an
object of a whole other class.
But how do I do it? :o
