Discuss Scratch

pokepowerd-eevee
Scratcher
100+ posts

how to make snake

im working on a snake game but the tail is being broken and i know nothing about pen aside from the

stamp
block

and drawing scribbles with the
pen down
and
pen up
blocks

so im using clones
rgantzos
Scratcher
100+ posts

how to make snake

I would need to see the code to be able to help you.

I have made a snake game before using pen, you can check it out here: https://scratch.mit.edu/projects/558735287/
If you do choose to use my version, I would appreciate credit.
pokepowerd-eevee
Scratcher
100+ posts

how to make snake

yeah i dont want to make it with pen
pokepowerd-eevee
Scratcher
100+ posts

how to make snake

anyways if you want the project clicky

Last edited by pokepowerd-eevee (Jan. 9, 2022 09:44:06)

deck26
Scratcher
1000+ posts

how to make snake

Your method for controlling the movement of the clone is just not going to work. You have one loop moving the clone a certain number of units in the current direction and another loop changing the direction. Imagine the snake moves right, up and left - do you really want all the clones to just move towards the head?
A much better method is for the head to add its xy position and direction at the first position in 3 lists (one for x, one for y etc) just before each move.. The first body segment then uses the data from the first list items to work out where to go and what direction to point. The second segment uses the second items in the list and so on.

However I much prefer a grid method.

https://scratch.mit.edu/projects/42045208
https://scratch.mit.edu/projects/47150778
pokepowerd-eevee
Scratcher
100+ posts

how to make snake

could you remix the project so i can backpack the code because i cant code that. i will give credit
deck26
Scratcher
1000+ posts

how to make snake

pokepowerd-eevee wrote:

could you remix the project so i can backpack the code because i cant code that. i will give credit
If that's a response to me I'm afraid I'm not goiing to do that. If you want someone to make a snake game for you there must be lots of examples. But if you want to create your own version I don't see the point in me doing half the work!
pokepowerd-eevee
Scratcher
100+ posts

how to make snake

ok
pokepowerd-eevee
Scratcher
100+ posts

how to make snake

i will try do what you said

Powered by DjangoBB