Ask coding questions

← Back to all posts
I NEEDDDD HELP PLZZZ :L
CyberHacker101 (128)

So im making a game....SNEK REMIX!!!

But i ran into some problems like i always do oof :l

I was making the game and whenever it passes or touches the border it goes back where it started now that might seem normal but heres the catch, it disengages the head which is very werid LOL. So what i want it to do is restart the page got any ideas how i can do dat oof :L

HAVE A GOOOD DAY MA FELLOW CODERS!!

Im getting stupider every second LOL

Answered by SCOTBUTZBACH (26) [earned 5 cycles]
View Answer
Comments
hotnewtop
SCOTBUTZBACH (26)

Switch the places of:

head.goto(0, 0)
head.direction = 'stop'

and

for segment in segments:
  segment.goto(800,800)
segments = []