Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » variables and copies making variables
- puppetmaster92
-
7 posts
variables and copies making variables
My browser / operating system: ChromeOS 14541.0.0, Chrome 128.0.0.0, No Flash version detected
whenever a clone in my game makes a variable, it makes account for all copies on screen. ex: if there's one copy on screen, it works as intended, changes the variable by one and deletes the clone, however if 2 clones are present, the first clone changes the variable by 2 instead of one and only one clone deletes it self.
whenever a clone in my game makes a variable, it makes account for all copies on screen. ex: if there's one copy on screen, it works as intended, changes the variable by one and deletes the clone, however if 2 clones are present, the first clone changes the variable by 2 instead of one and only one clone deletes it self.
- Catscratcher07
-
1000+ posts
variables and copies making variables
This is very likely on your end; I'll have the topic moved to Help with Scripts for you. In the meantime, please link your project.
- medians
-
1000+ posts
variables and copies making variables
Are you trying to make the variable sprite only, and can you send the link to the project?
- puppetmaster92
-
7 posts
variables and copies making variables
Your text to link here…
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/1075014823/editor/
its noticeable when there's more than one green gem on screen
its space to fire and the cannon follows your cursor
the green gems follow your cursor once in a certain range of it
the variable is xpc, xps is just trying to count clones but its the same prob
P.S.( i suck at making links…)
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/1075014823/editor/
its noticeable when there's more than one green gem on screen
its space to fire and the cannon follows your cursor
the green gems follow your cursor once in a certain range of it
the variable is xpc, xps is just trying to count clones but its the same prob
P.S.( i suck at making links…)
- puppetmaster92
-
7 posts
variables and copies making variables
nvm on that last part, the text didn't show a link at first
- puppetmaster92
-
7 posts
variables and copies making variables
I'm trying to make a variable go up by one when the xp clone touches the cursor, its for some reason affected by the amount of clones
- Catscratcher07
-
1000+ posts
variables and copies making variables
Your link is not working, is your project shared?
- Catscratcher07
-
1000+ posts
variables and copies making variables
The green gems are reclusively cloning— the xp broadcast receiver (currently plural, but you should combine them) ought to have a
around it, with “clone?” being a for-this-sprite-only variable set to one when under “when I start as a clone.”
if <(clone?) = [1]> then
end
- puppetmaster92
-
7 posts
variables and copies making variables
hey, I've practically given up on trying to figure out what I'm doing wrong, so I moved on and made this, plz tell me how you feel about it
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/1088048004
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/1088048004
- puppetmaster92
-
7 posts
variables and copies making variables
turns out the problem was that I was using a broadcast
- Discussion Forums
- » Help with Scripts
-
» variables and copies making variables