Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » I need help to make a Snake game! PLEASE HELP
- deck26
-
1000+ posts
I need help to make a Snake game! PLEASE HELP
That's a bit too general a question for this forum where we help with specific scripting issues. However this may help https://scratch.mit.edu/projects/42045208 - it's a much simpler method than using lots of clones for the snake.
- deck26
-
1000+ posts
I need help to make a Snake game! PLEASE HELP
It's hard to make sense of your code or how you expect it to work. Is the pen supposed to be the snake's body? If so you need to erase it all each frame and redraw it or it will just get longer and longer whether or not you're eating apples.
I think you should start afresh and use a grid system for this - https://scratch.mit.edu/projects/47150778 es per my eralier response.
If you want to continue with your own version you at least need to get the apple to disappear when eaten. At the moment the snake detects the apple multiple times so your nested ‘repeat apple’ loops are slowing things down a lot. Those loops do nothing useful since they only put the pen down and set the colour - both only need doing once so why the loops?
I think you should start afresh and use a grid system for this - https://scratch.mit.edu/projects/47150778 es per my eralier response.
If you want to continue with your own version you at least need to get the apple to disappear when eaten. At the moment the snake detects the apple multiple times so your nested ‘repeat apple’ loops are slowing things down a lot. Those loops do nothing useful since they only put the pen down and set the colour - both only need doing once so why the loops?
- THEIMPORTANT
-
100+ posts
I need help to make a Snake game! PLEASE HELP
the loops made the entire project wrong. you need a forever loop not a repeat loop for this
- Discussion Forums
- » Help with Scripts
-
» I need help to make a Snake game! PLEASE HELP