Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » My snake game won't work, please help me fix it, my grades depend on if you can help!
- SpookySammich
-
18 posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
Here is the link to my game:
https://scratch.mit.edu/projects/155432168/
As you can see there is a bug when you play the game please help me fix it!
I will add a high-score board after I get help with this, but PLEASE help me! I'm stuck and my grades depend on if someone can fix this for me!
https://scratch.mit.edu/projects/1817568/
The snake in the game itself needs to move around like the snake in the game that is linked above.
https://scratch.mit.edu/projects/155432168/
As you can see there is a bug when you play the game please help me fix it!
I will add a high-score board after I get help with this, but PLEASE help me! I'm stuck and my grades depend on if someone can fix this for me!
https://scratch.mit.edu/projects/1817568/
The snake in the game itself needs to move around like the snake in the game that is linked above.
- drmcw
-
1000+ posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
You have an example that works why not use that to fix yours? Hint: Look at the sprite called Hider.
- SpookySammich
-
18 posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
Could you remix it to explain what you mean? I'm really confused and I REALLY need help!
- drmcw
-
1000+ posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
Apologies you did have a hider sprite. The reason it doesn't work is because your lists are local (for this sprite only) and not global. Change them and it should work.
- SpookySammich
-
18 posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
I don't understand what you mean by “your lists are local” I'm kinda new to scratch and coding in general, but can you please explain in depth.
If you don't want to explain in depth, just remix it to show me what you mean please.
If you don't want to explain in depth, just remix it to show me what you mean please.
- drmcw
-
1000+ posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
When you create a list it asks you for a name and also has buttons for either “for this sprite only” or “for all sprites”.
Your lists called listx and listy are “for this sprite only” delete them from both your sprites then make 2 new lists called listx and listy but make sure they are “for all sprites”.
Your lists called listx and listy are “for this sprite only” delete them from both your sprites then make 2 new lists called listx and listy but make sure they are “for all sprites”.
- duckboycool
-
1000+ posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
They want you to delete and remake the lists that make sure you click for all sprites.

It will work if you do this.
Ninja'd by 9 seconds. Oh well, it's good for the image to be there anyway.

It will work if you do this.
Ninja'd by 9 seconds. Oh well, it's good for the image to be there anyway.
Last edited by duckboycool (April 22, 2017 17:41:28)
- Slugger314
-
100+ posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
I can help, but I don't want to give away the answer because that would essentially be cheating. And cheating is bad, isn't it?
I will, however, give you a few tips.
1. You have the “PLAY” button broadcast the “INSTRUCTIONS” message, when the Snake sprite only listens for the “START GAME” message, which never appears. You should change the parameters of what the Snake listens for.
2. Provide links for the images so your project doesn't get taken down for “Uses Image/Music Without Credit.” I won't report it yet, I am just giving you a warning.
3. Try looking into the code of the working game to see how it works. Make sure to give credit!
4. If all else fails, ask your teacher or parents for help.
Hope this helped!
I will, however, give you a few tips.
1. You have the “PLAY” button broadcast the “INSTRUCTIONS” message, when the Snake sprite only listens for the “START GAME” message, which never appears. You should change the parameters of what the Snake listens for.
2. Provide links for the images so your project doesn't get taken down for “Uses Image/Music Without Credit.” I won't report it yet, I am just giving you a warning.
3. Try looking into the code of the working game to see how it works. Make sure to give credit!
4. If all else fails, ask your teacher or parents for help.
Hope this helped!
- SpookySammich
-
18 posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
drmcw & duckboycool : I finally understood what you were saying and it worked, thanks for the help!
Slugger314 : I'll make sure to take your advice, just give me until the end of the day to fix this (Guest over at our house)
All I have left to do is add a scoreboard and a cloud high-score board (I know how to do this stuff don't worry) I will post here again after the game is completely finished, and when it is I will make sure to credit the people Slugger314 has told me to credit and I will of course remember to credit you guys as well! Thank You!
Slugger314 : I'll make sure to take your advice, just give me until the end of the day to fix this (Guest over at our house)
All I have left to do is add a scoreboard and a cloud high-score board (I know how to do this stuff don't worry) I will post here again after the game is completely finished, and when it is I will make sure to credit the people Slugger314 has told me to credit and I will of course remember to credit you guys as well! Thank You!
- SpookySammich
-
18 posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
Slugger314, when I was looking for a funny cobra image, I tried a BUNCH of crazy keywords, in the end I found the one that is currently the game thumbnail. All I know was it was when I searched up something like “free cobra snake drawing colored” I can't find it but if you find it please give me the link and I'll use it. For now I'll use the link to another really good colored cobra snake drawing. Please don't report me, I honestly just can't find the image!
- SpookySammich
-
18 posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
I gave credits to you guys for helping, I have another question though: When the game is played there is this erase feature I use, when you lose, since you played the game the losing screen has parts of it erased…help? (It's ok if you can't, I don't need a losing screen and I have a good alternative for if the losing screen thing doesn't work out.)
Try beating the high-score! (I barely had anytime to play it because I was kinda stressed out, so it'll be easy to beat.)
Try beating the high-score! (I barely had anytime to play it because I was kinda stressed out, so it'll be easy to beat.)
- Gamingwithdave
-
2 posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
can i do a remix out of it so i can fix the bug for you
- drmcw
-
1000+ posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
Use I gave credits to you guys for helping, I have another question though: When the game is played there is this erase feature I use, when you lose, since you played the game the losing screen has parts of it erased…help? (It's ok if you can't, I don't need a losing screen and I have a good alternative for if the losing screen thing doesn't work out.)
Try beating the high-score! (I barely had anytime to play it because I was kinda stressed out, so it'll be easy to beat.)
- SpookySammich
-
18 posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
The first problem is fixed now thanks to drmcw, duckboycool, and Slugger314 can i do a remix out of it so i can fix the bug for you
- SpookySammich
-
18 posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
How do you make a Cloud High-Score variable that tells you the names of the people on the high-score board?
- duckboycool
-
1000+ posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
Do you mean like a top 3 leaderboard?
If so, I will just remix your project as that is much easier to do than explaining the cloud.
If so, I will just remix your project as that is much easier to do than explaining the cloud.
- SpookySammich
-
18 posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
Thanks, go ahead and do that. Please take it down after I understand how it works so my friends don't think I copied the entire project off of you. Do you mean like a top 3 leaderboard?
If so, I will just remix your project as that is much easier to do than explaining the cloud.
Also if you don't know how to unshare it, here's how:
Click on your profile name at the top right of the screen>Click My stuff>Then click unshare on the remix (When I tell you to)
If you still don't understand how to unshare, I can record a video on my computer showing the 3 steps to do it
Last edited by SpookySammich (April 23, 2017 22:30:54)
- duckboycool
-
1000+ posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
Sorry, but I've been on Scratch for 2 years. I know how to unshare.
BTW, when you remix a project, it shows the original project that it was remixed from, so people wouldn't confuse it.
BTW, when you remix a project, it shows the original project that it was remixed from, so people wouldn't confuse it.
- duckboycool
-
1000+ posts
My snake game won't work, please help me fix it, my grades depend on if you can help!
- Discussion Forums
- » Help with Scripts
-
» My snake game won't work, please help me fix it, my grades depend on if you can help!