This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-06-17 13:28:41

MrMunchkin
Scratcher
Registered: 2009-05-16
Posts: 86

What Slows A Sprite Down? - Help!

hello, I'm making a complex 'worlds hardest game version 3' kinda game, and I've noticed that on some levels the sprite moves slower than others (i use a 'when right arrow pressed change x by 3' etc. kind of script for movement. Is there any way to minimize the change in speed? I notice that when I add a spinning sprite, it gets slower, as when i add a rapid costume change or 'broadcast....'. If i use 'wait until scripts' until forever if' scripts, will it slow down less? What slows down the movement?

Thank you.  smile  Happy scratching.


http://scratch.mit.edu/projects/MrMunchkin/958570 http://scratch.mit.edu/projects/MrMunchkin/1074952
Check Them Out!

Offline

 

#2 2009-06-17 13:50:36

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: What Slows A Sprite Down? - Help!

Loops are good, but it also depends on execution engine. Which version do you use?


Converting my Scratch projects to Python!

Offline

 

#3 2009-06-18 10:13:28

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: What Slows A Sprite Down? - Help!

If there's more things happening at the same time, the project will become slower because it can't do much at one time.

To reduce it, try taking out as many forever loops as you can. If you have some forever loops that are conditional (e.g, forever loops that just have ifs in them and are only "active" for a part of the game), try finding ways around that. The thing with those is that they are always checking if the if part of it is true, which it almost always isn't, and therefore it slows your project down even though it isn't doing anything.

Last edited by coolstuff (2009-06-18 10:13:38)

Offline

 

Board footer