Hey, Im currently working on a small game and Im trying to reset the player after every round to his starting point. This code is in my commands class snake and turtle are both subclasses of commands
But it just doesn't work. Anyone here know how I can fix it.
public void score(int splus){
score1= score1 + splus;
getWorld().showText(""+score1, 1, 1);
Actor actor =getOneIntersectingObject(turtle.class);
if (turtle != null){
turtle.setLocation(46,21);
}
Actor snake = getOneIntersectingObject(snake.class);
if (actor1 != null){
snake.setLocation(7,13);
}
