Hey, I want to know how can I have the first position of an object, because I'm making a football game, and you get more poit if you score far. So I don't know if it's possible to have only the first position of an actor.
if(this.getOneIntersectingObject(Goal.class) != null && this.getX() < 100){ point = point + 5; } if(this.getOneIntersectingObject(Goal.class) != null && this.getX() < 300){ point = point + 1; }