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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | if ( this .getOneIntersectingObject(Goal. class ) != null && this .getX() < 100 ){ point = point + 5 ; } if ( this .getOneIntersectingObject(Goal. class ) != null && this .getX() < 300 ){ point = point + 1 ; } |