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

#1 2008-12-20 09:59:44

Natheyecea
Scratcher
Registered: 2008-12-20
Posts: 4

Move forward and turn at the same time

So this is my first project that I have uploaded:
http://scratch.mit.edu/projects/Natheyecea/357266

It´s pretty good, except one thing; you can´t move forward and turn at the same time. Try to do it by yourself and you will see what I mean. If you press one of the buttons 1-6 and press either right or left arrow key at the same time I want it to keep moving forward in the same speed wile turning to left/right.
How do you make this?

Offline

 

#2 2008-12-20 10:05:07

Dan01
Scratcher
Registered: 2008-06-11
Posts: 100+

Re: Move forward and turn at the same time

Try using this script instead:

<when green flag clicked>
<forever>
<if><key[ right arrow ]pressed?>
<turn cw( 2 )degrees>
<end>
<if><key[ 1 ]pressed?>
<move( 1 )steps>
<end>
<end>


That should work  smile


http://img3.imageshack.us/img3/4743/ubd6522wp8.png
http://img3.imageshack.us/img3/4667/ubd3758ox2.png

Offline

 

#3 2008-12-20 10:09:20

Natheyecea
Scratcher
Registered: 2008-12-20
Posts: 4

Re: Move forward and turn at the same time

It works  smile  Thank you  tongue

Offline

 

#4 2008-12-20 10:18:32

Dan01
Scratcher
Registered: 2008-06-11
Posts: 100+

Re: Move forward and turn at the same time

Natheyecea wrote:

It works  smile  Thank you  tongue

big_smile

Just add in the other commands under it.


http://img3.imageshack.us/img3/4743/ubd6522wp8.png
http://img3.imageshack.us/img3/4667/ubd3758ox2.png

Offline

 

Board footer