Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Doesn't work with run without screen refresh
- AliMASTER430258
-
Scratcher
100+ posts
Doesn't work with run without screen refresh
I'm making a peridic table, and this is my my test code
when green flag clickedThis works with “periodic start” with run without screen refresh, but I need it to be immediate, and it doesn't work at RWSR.
periodic start
define periodic start // run without screen refresh
set [clone id v] to [0]
switch costume to [Hydrogen v]
go to x: (-206) y: (114)
repeat (10)
create clone of [myself v]
change [clone id v] by (1)
next costume
end
hide
when I start as a clone
go to x: (-206) y: (114)
change x by ((clone id) * (40))
show
- amgilmo
-
Scratcher
100+ posts
Doesn't work with run without screen refresh
You could do a
i'm not the best with clones, but this'll work faster than changeX
set x to ((-206) + ((cloneid) * (40)))
i'm not the best with clones, but this'll work faster than changeX
- RokCoder
-
Scratcher
1000+ posts
Doesn't work with run without screen refresh
You need to have cloneid
as a for this sprite only
variable
You could also rewrite this to simply it -
You could also rewrite this to simply it -
when green flag clicked
periodic start
define periodic start // run without screen refresh
show
switch costume to [Hydrogen v]
go to x: (-206) y: (114)
repeat (10)
create clone of [myself v]
change x by (40)
next costume
end
hide
Last edited by RokCoder (Yesterday 13:02:54)
- Discussion Forums
- » Help with Scripts
- » Doesn't work with run without screen refresh
