Hi guys,
I need to code an "public boolean checkFront(){}" method, that checks an spcified area in Front of an moving object from the class "Spieler" (extends Actor). If theres an other Object of the Class "Spieler" or an object of the class "Wallpiece" or if the area is to close to the border of the World, it should return "true" .
I need also in that style a mehtod checkLeft() and checkRight(), they should check an specified area left/right of the object.
I tried to make an object of the class "Checker"(just existing to exist), that moves through this are, but it took to much of the CPU resources, the game started to lag, so this isnt an Option.