Hello again,
I have a game when snake leaves its trails behind.
That trail is actually string "-" (string is written in my actor "Pika"), like this :
Now I want to make that my game stop when actor ("Pika") hit his own trail (this string -> "-"), is it possible to do it ?
PS: At first I didn't have string for trail, but I had another actor for trail. This thing was actually working, but there was a memory problem when I start game for few times, so beside this I want string for trails... And I don't know how to finish the code.. Any idea ?
public void risanjeSledi()
{
getWorld().getBackground().drawString("-", getX(), getY());
}
