thanks.. i wasn’t also not that good at it ;D
yeah, i know that bug .. it happens when you press the keys to quick .. to prevent the “going back” i added bools for all directions, pressing a key sets it and pressing another resets that and sets it new to another direction .. so when you go up, isUp is set to true and prevents going down .. when you now press left or right and right afterwards down (before the head moved) it goes down into itself .. need to find a way, to prevent input, before the direction changed ..
only time moving in the opposite direction is right on the start you can press left while the head is moving to the right ..