Sorry if this is an easy question to most people, but how do you contol a sprite?
At the moment, I don't it to change costumes and I'm still new to this program.
What are the scripts used to make this possible?
Offline
for cotumes: <switch to costume[ ]> <next costume>
movment <change x by( )><change y by( )><set x to( )> <set y to( )> <move( )steps> <turn cw( )degrees> <turn cw( )degrees> etc...
Offline
Downlaod some projects - there are three ways to control a sprite - that I can think off of the top of my head.
Timer based - look at at one of what I call the story scratch projects for this
Broadcast based (this also could be used)
Input based (mouse or keyboard) anything interactive will use that. My project circle uses keyboard input.
Most importantly Read Manuals, Read code. If you want to program you will have to read - read and read more
Offline
I'm asking for a simple set of blocks, i know what blocks does what, but I don't know what blocks to use.
I don't like to consider downloading.
Offline
I'm looking for almost the same thing. Is it possible if the character faces the directional buttons pressed. I think it's hard to show the blocks here..
Offline
Try looking for the marble sprites that are included with scratch. The sample projects are also good.
Offline
Well to make a sprite move you put this:
[blocks]<when[ right/left arrow ]key pressed>[/blocks]
[blocks]<next costume>[/blocks]
[blocks]<point in direction( whichever degree is right/left[/blocks]
[blocks]<move( 10 )steps>[/blocks]
That way you can make separate costumes to look like it's walking or running by making a walk/run cycle. It will switch to the next part of the cycle every time the arrow key is pressed, and it will move whichever way you want it to go.
Offline