Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Variable not working
- linnydavid
- Scratcher
1 post
Variable not working
so i made a “when i start as a clone” command and inside i did some variable stuff but when the clone spawn it sets all the clones to that clone's commands
- deck26
- Scratcher
1000+ posts
Variable not working
Your question is unclear but do you realise that any variable local to the sprite (for this sprite only) is duplicated for each clone so they all have their own copy. If you're displaying the variable it is the sprite's copy you're seeing. Try getting the clones to say their value.
- hisshami
- Scratcher
97 posts
Variable not working
please elaborate
I require an assertion of value, for I did not give my consent to this existence
- hisshami
- jdmdigital
- Scratcher
100+ posts
Variable not working
Feel free to remix this one and play around to mod the clone and see how it gets affected by your mods.
https://scratch.mit.edu/projects/517424214
https://scratch.mit.edu/projects/517424214
- Discussion Forums
- » Help with Scripts
- » Variable not working