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
delete this clone

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

Fractals go on forever. Scratch can't handle that.
I made sure that once it hits size = 5, it stops
Permanent Link

Extra Post Information

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