Hi, I'm a new user here at scratch and we're using this program in our course in Computer Science to create interactive games for kids. I was wondering how to make rotating objects that are moving. Using the move x degrees only lets it move in circles, and rotating it 360 degrees doesn't work. Thanks in advanced for the help
Offline
louieansonng wrote:
Hi, I'm a new user here at scratch and we're using this program in our course in Computer Science to create interactive games for kids. I was wondering how to make rotating objects that are moving. Using the move x degrees only lets it move in circles, and rotating it 360 degrees doesn't work. Thanks in advanced for the help
It sounds like you want a sprite to rotate while still changing its x and y positions, yes?
Perhaps two scripts running simultaneously might be what you need: one to control the rotation, the other to control the sprite movement in the x and y direction. The following blocks control sprite position:
<move( )steps>
<go to x
)y
<glide( )secs to x
)y
<change x by(
<set x to(
<change y by(
<set y to(
[/blocks]
Last edited by cheddargirl (2009-05-30 15:49:45)

Offline
Thanks. I'll try and play with the blocks and see if I can get it right.
Offline
Do it like this:
[blocks]<when green flag clicked>
<forever>
<move( any number needed )steps>
<turn cw (any #)degrees> OR <turn cw (any #)degrees>
<end>[/blocks]
Hope that helps!!!!!
Last edited by fire219 (2009-06-10 15:17:50)
Offline