Hello I'm new to scratch and I've encountered a problem. When I test out the code by clicking on them separately, the motion is smooth and fast, but when I put the project in presentation mode, the motion is slow and choppy. Does anyone know how I can fix this problem? Please help. Urgent. Thank you in advance!
P.S. the motion blocks are just basic forever-if-key pressed-change x/y by 5/-5 repeated
Offline
I think it's because when you only run one script at a time by clicking it, there is only 1 script to run so it's faster, but when you press the green flag and play in presentation mode, it has to run all of the scripts in the project and since there's so many it becomes slower. I don't think you can fix it, just try and use less scripts maybe?
Offline
Try adding all the scripts to one script. (if that makes sense)
Instead of
when gf clicked forever change x by (5) end
when gf clicked forever change y by (5) endDo this:
when gf clicked forever change x by (5) end forever change y by (5) endHope this helps!
Offline
iaoumeur wrote:
Try adding all the scripts to one script. (if that makes sense)
Instead ofwhen gf clicked forever change x by (5) endwhen gf clicked forever change y by (5) endDo this:when gf clicked forever change x by (5) end forever change y by (5) endHope this helps!
Doesn't. Scratch will do change x forever, then the change y will never happen
Offline
thescratchytim wrote:
iaoumeur wrote:
Try adding all the scripts to one script. (if that makes sense)
Instead ofwhen gf clicked forever change x by (5) endwhen gf clicked forever change y by (5) endDo this:when gf clicked forever change x by (5) end forever change y by (5) endHope this helps!Doesn't. Scratch will do change x forever, then the change y will never happen
Another thing: forever blocks don't do that. They're like 'stop this script' and 'stop all' blocks in that you can't attach anything under them.
Offline
lalala3 wrote:
thescratchytim wrote:
iaoumeur wrote:
Try adding all the scripts to one script. (if that makes sense)
Instead ofwhen gf clicked forever change x by (5) endwhen gf clicked forever change y by (5) endDo this:when gf clicked forever change x by (5) end forever change y by (5) endHope this helps!Doesn't. Scratch will do change x forever, then the change y will never happen
Another thing: forever blocks don't do that. They're like 'stop this script' and 'stop all' blocks in that you can't attach anything under them.
Yes I know but it's just an example.
Offline