<when green flag clicked>
<forever>
<switch to costume[ ---
<wait( --- )secs>
<switch to costume[ ---
<wait( --- )secs>
<end>
if there are mose coustumes, just keep adding
<switch to costume[ ---
<wait( --- )secs>
untill you're done
Last edited by funkymonkey (2007-12-12 17:10:30)
Offline
You can do something like
[blocks]
<when green flag clicked>
<forever>
(your motion script)
<end>
[/blocks]
Then it will start moving when you press the green flag in Scratch. Online it will start moving right away, without you having to click on anything.
Offline
a first simple motion script could be something like this:
[blocks]
<when green flag clicked>
<forever>
<move( 10 )steps>
<wait( 0.3 )secs>
<if on edge, bounce>
<end>
[/blocks]
If your sprite is to look like a human / animal character you might want to set the sprite to turn only left / right to prevent it from turning upside down. Also you might want to switch between at least two costumes in each iteration to create an animated motion impression.
Another great way to learn is to download someone else's project that already does what you want to achieve and have a look at how it's done, or remix it, or export a particular sprite from that project and import it into your own project.
Did that help?
Offline
you can make them go anywhere you want by using the blocks from the motion category changing the sprite's x-value makes it moves left/right, changing the sprite's y-value makes it move up/down. Changing the sprite's direction in combination with the 'move _ steps' block is another way to move it around. Just keep on experimenting!
Offline
Jens wrote:
a first simple motion script could be something like this:
[blocks]
<when green flag clicked>
<forever>
<move( 10 )steps>
<wait( 0.3 )secs>
<if on edge, bounce>
<end>
[/blocks]
If your sprite is to look like a human / animal character you might want to set the sprite to turn only left / right to prevent it from turning upside down. Also you might want to switch between at least two costumes in each iteration to create an animated motion impression.
Another great way to learn is to download someone else's project that already does what you want to achieve and have a look at how it's done, or remix it, or export a particular sprite from that project and import it into your own project.
Did that help?
How do you set the sprite to only go left and right and not upsidedown?
Offline
You can set the sprite's direction to 90 (for right) and specify the sprite to only turn left / right (by clicking on the little arrow-symbols in the sprite editor on top of the scripting area). This will make the sprite go only left and right without turning upside down.
Offline
Go to the support page on scratch and you will see Scratch Cards that help with basic motion,animation,move to mouse pointer, e.t.c all that good stuff read them and mess around with the script and see if it works!
Last edited by Lanie624 (2008-01-15 06:36:25)
Offline