Sorry about this n00b-ie question, but if you had more scripts would your project run slower, because I was wondering whether scratch runs different scripts simultaneously, or do scripts run one after another?
So, for example, if I had a script that was like:
When green flag clicked:
forever {
change scrollx by (velocity*-1)
set terrainNo to (round(scrollx/-480))
switch to costume(terrainNo)
set x to (scrollx+(480*terrainNo))
}
Would that run slower than if I had each line separate in their own forever loop?
Offline
Scratch can run scripts simultaneously, but the more scripts you have, and the longer they are, the slower the projects will be.
Offline
I am not sure how it works exactly but I know for sure that if you have really long scripts that are not split up the editor will have massive lag.
Offline
archmage wrote:
I am not sure how it works exactly but I know for sure that if you have really long scripts that are not split up the editor will have massive lag.
But that's lag in the rendering of the scripts, not the actual running of the project.
Offline
Also, I'd guess that all the scripts, in letter-form behind the scenes, are all part of one giant for-loop. I don't have any evidence to back this up; it is just a guess.
Offline
Harakou wrote:
archmage wrote:
I am not sure how it works exactly but I know for sure that if you have really long scripts that are not split up the editor will have massive lag.
But that's lag in the rendering of the scripts, not the actual running of the project.
Yeah, from my experience, it doesn't really matter if scripts are split up or not, they will run at the same speed. Split up scripts are better since they don't lag in the editor.
Offline
I've used tons of scripts, but none of my projects turn out slower.. Then again I use things like
<move( )steps><when[ ]key pressed><when[ ]clicked><wait( )secsc><forever><repeat( <broadcast[ <when I receive[
Offline