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

#1 2008-09-05 05:48:43

solstice
Scratcher
Registered: 2008-09-04
Posts: 55

How To Move Sprites Smoothly

Does anybody know a way to make sprites move smoothly in games on movies

thanks
Sol

Offline

 

#2 2008-09-05 09:06:59

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: How To Move Sprites Smoothly

The smoothness of motion depends on two things...the framerate (how fast the picture is updated) and the sprite speed.  If you have a slow moving sprite, the framerate can be pretty slow and it will still look smooth.  If you have a fast-moving sprite, it's important to keep the framerate high.

So how do you make your motion look smooth?  Either keep the sprites moving fairly slowly or make sure your project can update the picture pretty fast.  Or both. 

That's the generic answer.  If you have a specific problem with a project, maybe you could share it to the web and we could recommend strategies for smoother motion.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2008-09-05 16:02:02

blahdeblah
Scratcher
Registered: 2008-02-19
Posts: 45

Re: How To Move Sprites Smoothly

You can use the motion block 'glide' for movies
And you can use this script:
When Green Flag Clicked:
Forever:
If Up arrow key pressed, change y by (#)
If Down arrow key pressed, change y by (-#)
If Left arrow key pressed, change x by (-#)
If Right arrow key pressed, change x by (#)
'#' is whatever number you want it to be.

Offline

 

Board footer