if(key is down (movmentkey)){
goto costume(first run costume)
repeate(number of run costumes){
next costume
}
}else{
goto costume (stop costume)
}
hope that works for u
Offline
Just add this script:
[blocks]<when[ left arrow ]key pressed>[/blocks]
[blocks]<if>[/blocks][blocks]<key[ left arrow ]pressed?>[/blocks]
[blocks]<switch to costume[ moving[/blocks]
[blocks]<else>[/blocks]
[blocks]<switch to costume[ not moving[/blocks]
[blocks]<end>[/blocks]
This script means that when you press an arrow key, he switches to his "moving" costume, which makes him look like he's moving along the screen. But when you're not pressing anything, he just switches to his other costume that looks like he's just standing, sitting, or whatever you want him to do whilst he's not moving.
Hope this helps! If it doesn't, just let me know and I will look into it for you!
Happy Scratch-ing!
Offline