Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do you make random dot clones pop up EVERYWHERE when your using a scroller map?
- caleb_ninja
-
Scratcher
42 posts
How do you make random dot clones pop up EVERYWHERE when your using a scroller map?
I'm trying to make an agar.io game but I can't figure out how to make the dots spawn everywhere on the scroller map AND not move while the map is scrolling. HELP PLEASE. If you want to look at the project go to this link https://scratch.mit.edu/projects/130293152/
when green flag clicked
forever
if <Somebody helps me> then
say [Thank you]
define Until the universe ends
end
end
- amylaser
-
Scratcher
500+ posts
How do you make random dot clones pop up EVERYWHERE when your using a scroller map?
Just use broadcasts to make the dot clones move whenever the map background moves. You should also use local variables (you get local variables by clicking the “for this sprite only” option when creating the variable) to store each dot's initial spawn position.
Inside each “if” block inside the forever loop that controls the “scroller” sprite's movement, insert a “broadcast” block that broadcasts “scroll”. Then, for the 'sprite2“ dots, use a ”when I receive " block to make them move to the x/y positions of the scroller minus the clone's original x/y positions.
Inside each “if” block inside the forever loop that controls the “scroller” sprite's movement, insert a “broadcast” block that broadcasts “scroll”. Then, for the 'sprite2“ dots, use a ”when I receive " block to make them move to the x/y positions of the scroller minus the clone's original x/y positions.
Last edited by amylaser (Nov. 12, 2016 04:35:51)
- caleb_ninja
-
Scratcher
42 posts
How do you make random dot clones pop up EVERYWHERE when your using a scroller map?
Just use broadcasts to make the dot clones move whenever the map background moves. You should also use local variables (you get local variables by clicking the “for this sprite only” option when creating the variable) to store each dot's initial spawn position.
Inside the forever loop that controls the “scroller” sprite's movement, insert a “broadcast” block that broadcasts “scroll”. Then, for the 'sprite2“ dots, use a ”when I receive " block to make them move to the x/y positions of the scroller minus the clone's original x/y positions.
define Until the universe ends
say [Thank you soooo much!!!]
- Discussion Forums
- » Help with Scripts
-
» How do you make random dot clones pop up EVERYWHERE when your using a scroller map?

