Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » PLEASE HELP ME URGENTLY!: Invisible clones of a sprite
- T3slaMotors
-
20 posts
PLEASE HELP ME URGENTLY!: Invisible clones of a sprite
Hi Scratch community,
I am having an issue regarding clones that I create of a sprite being invisible: when more than one clone of a sprite has been created and another clone is created, a space/invisible sprite is in between the sprite and the first clone made (which is visible).
I am following a ‘Snake’ game YouTube tutorial made by Owen from the YouTube channel ShiftClickLearn and the modifications I have made to the tutorial code do not affect the clone function/the snake getting longer.
Any help whatsoever would be greatly appreciated as I urgently need to solve this problem that I am facing.
Thank you very much in advance for your help,
T3slaMotors
The YouTube tutorial that I am following: https://www.youtube.com/watch?v=SG0wJDcpzis
The finished tutorial game example made by Owen: https://scratch.mit.edu/projects/581719941/
The problem is located in the ‘Snake/player body’ sprite, most likely in the ‘When I start as a sprite’ event code: https://scratch.mit.edu/projects/593603235
I am having an issue regarding clones that I create of a sprite being invisible: when more than one clone of a sprite has been created and another clone is created, a space/invisible sprite is in between the sprite and the first clone made (which is visible).
I am following a ‘Snake’ game YouTube tutorial made by Owen from the YouTube channel ShiftClickLearn and the modifications I have made to the tutorial code do not affect the clone function/the snake getting longer.
Any help whatsoever would be greatly appreciated as I urgently need to solve this problem that I am facing.
Thank you very much in advance for your help,
T3slaMotors
The YouTube tutorial that I am following: https://www.youtube.com/watch?v=SG0wJDcpzis
The finished tutorial game example made by Owen: https://scratch.mit.edu/projects/581719941/
The problem is located in the ‘Snake/player body’ sprite, most likely in the ‘When I start as a sprite’ event code: https://scratch.mit.edu/projects/593603235
- deck26
-
1000+ posts
PLEASE HELP ME URGENTLY!: Invisible clones of a sprite
Pretty sure your clonenumber variable should be local (this sprite only) ratehr than global. A global variable is the same for all sprites/clones across the project but a local variable can be different for each clone. Create a new local variable and replace all the references to the old one.
Last edited by deck26 (Nov. 14, 2021 13:45:21)
- T3slaMotors
-
20 posts
PLEASE HELP ME URGENTLY!: Invisible clones of a sprite
Thank you so much deck26; it worked! 

Last edited by T3slaMotors (Nov. 14, 2021 14:22:10)
- JoshuaSodey
-
7 posts
PLEASE HELP ME URGENTLY!: Invisible clones of a sprite
Pretty on the last reply you taken. You have to wait a little bit.
- T3slaMotors
-
20 posts
PLEASE HELP ME URGENTLY!: Invisible clones of a sprite
deck 26, I realised that Owen actually said that the cloneID variable needed to be for the snake/player sprite only and somehow I missed that.
I guess I missed it because every other variable that I had to make was for all sprites. 


Last edited by T3slaMotors (Nov. 14, 2021 14:23:04)
- deck26
-
1000+ posts
PLEASE HELP ME URGENTLY!: Invisible clones of a sprite
deck 26, I realised that Owen actually said that the cloneID variable needed to be for the snake/player sprite only and somehow I missed that.Thought that would be the case but easy to miss. With experience it is obvious that it needed to be local. In case you don't know, you can tell what type it is by how it displays - when you display a local variable it will include the sprite name.I guess I missed it because every other variable that I had to make was for all sprites.
- JoshuaSodey
-
7 posts
PLEASE HELP ME URGENTLY!: Invisible clones of a sprite
deck26 and T3slaMotors are you doing?
- deck26
-
1000+ posts
PLEASE HELP ME URGENTLY!: Invisible clones of a sprite
What are you asking. They needed help and I answered them. What's your interest in the topic? deck26 and T3slaMotors are you doing?
- JoshuaSodey
-
7 posts
PLEASE HELP ME URGENTLY!: Invisible clones of a sprite
I just want to be a scratcher
- deck26
-
1000+ posts
PLEASE HELP ME URGENTLY!: Invisible clones of a sprite
So find something where you posting makes sense rather than just posting where you're not adding anything useful. Perhaps say hello on I just want to be a scratcherhttps://scratch.mit.edu/discuss/6/ for example.
- deck26
-
1000+ posts
PLEASE HELP ME URGENTLY!: Invisible clones of a sprite
Because every time you post this topic moves back to the top of the forum and someone else is potentially knocked off the top page either then or sooner than should have been the case. The OP also gets a message to say there's a new response which, at the point they actually still needed help is going to be a bit disappointing when all they see is your post. WHY
This is a forum that is extremely helpful to those who need it. Anything that disrupts the smooth working of the forum shows a lack of consideration for those needing help.
- JoshuaSodey
-
7 posts
PLEASE HELP ME URGENTLY!: Invisible clones of a sprite
(AAAAAAAAHAHHAHAHHA)

- Discussion Forums
- » Help with Scripts
-
» PLEASE HELP ME URGENTLY!: Invisible clones of a sprite