Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » LAG WARNING bug a wave of cube clones
- chickenandcheesesand
-
Scratcher
100+ posts
LAG WARNING bug a wave of cube clones
WARNING: WILL LAG A LOT.
https://scratch.mit.edu/projects/1386887469/
im trying to make a merge game, and am having trouble with the merging aspect. i've started (somehow) making massive walls of cubes. how do i stop this? is there any better way to fix the physics (i just stole some ball physics and abridged it for square)? is there a better way to mimic the merging?
https://scratch.mit.edu/projects/1386887469/
im trying to make a merge game, and am having trouble with the merging aspect. i've started (somehow) making massive walls of cubes. how do i stop this? is there any better way to fix the physics (i just stole some ball physics and abridged it for square)? is there a better way to mimic the merging?
- redshift-cb
-
Scratcher
43 posts
LAG WARNING bug a wave of cube clones
its because when something is broadcasted, it also applies to the clones, but i don't know how to fix it sorry
- leog20162
-
Scratcher
100+ posts
LAG WARNING bug a wave of cube clones
add this:
when I start as a cloneAnd for the recive brodcast code:
set [Clone? (MAKE SURE THIS IS "FOR THIS SPRITE ONLY") v] to [1]
when I receive [whatever v]
if <(clone) = (0)> then
...
else
stop [this script v]
end
- Discussion Forums
- » Help with Scripts
-
» LAG WARNING bug a wave of cube clones