I am attempting to create a version of the game Snake for a course I am taking but I’ve gotten stuck on an unexpected issue.
When my “snake” (the sphere) attempts to move from horizontal to vertical the tail (tiny cube) for a fraction of a second will occupy the same space as the head which as anyone who played the original version on their Nokia means Game Over.
I need a way to make the tail not collide with the main head of the snake.
I’ve tried to the best of my ability to follow this tutorial but perhaps due to it being for UE4 it’s not working as well for UE5 (or at least that’s excuse I tell myself)
This is how my movement works, feels like the sanest way to insert the code into but I can’t get it working smoothly, do you have any other tips on where inserting it might work better?