Post Information

qrcool wrote:

griefercube wrote:

I made a fractal generator but it crashed! Would anyone tell me the reason?
no screen refresh
when flag clicked
fractal [input]

define fractal(input)
set [numba v] to [0]
repeat until <(numba) = (input)>
point in direction (([360] / (input)) * (numba))
move (size) steps
create clone of [myself v]
move (join (-) (size)) steps
end
stamp
hide
delete this clone

when I start as a clone
if <not<(size) < (5)>> then
fractal [input]

end
Fractals go on forever. Scratch can't handle that.
I made sure that once it hits size = 5, it stops
Permanent Link
https://forums.scratchstats.com/post/4397254

Extra Post Information

Forum Post4397254
Post ID4397254
Time Indexed4:03:53 AM 7/9/2020
Topic ID437523
CategoryHelp With Scripts
Request Time3 ms