Discuss Scratch

Ausername57
Scratcher
100+ posts

how do i make this size comparison work?

in my game, im making a size comparison and when you press the arrow keys while the variable “size” is at -100 or less, it goes down by -100 each time and it creates multiple clones. does anyone know how to fis this?

game: https://scratch.mit.edu/projects/1150372454/
TheCoder12365
Scratcher
100+ posts

how do i make this size comparison work?

The issue is the fact that you are having the clone, create clones every time it gets to -100, FOREVER. So as soon as it reachs -100 it maxes out the clone limit, and makes tons of clones that are each changing the size. To fix this, you could make it so it waits until size is less than -100 to create a clone in a green flag script, or make a variable to differentiate between clones. Hope this helps!

Last edited by TheCoder12365 (March 21, 2025 18:40:45)

Ausername57
Scratcher
100+ posts

how do i make this size comparison work?

TheCoder12365 wrote:

The issue is the fact that you are having the clone, create clones every time it gets to -100, FOREVER. So as soon as it reachs -100 it maxes out the clone limit, and makes tons of clones that are each changing the size. To fix this, you could make it so it waits until size is less than -100 to create a clone in a green flag script, or make a variable to differentiate between clones. Hope this helps!
dosent work

Powered by DjangoBB