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

#1 2009-10-03 16:01:10

matthewthemagical
Scratcher
Registered: 2009-07-26
Posts: 100+

Simple Script Not Working

For some reason this script isn't working:

when left arrow key pressed
repeat until <not<left arrow key pressed?> >
turn(Turning)degrees

What is supposed to happen:
The objext is supposed to turn Turning degrees as long as the left arrow key is held down.

What does happen:
Nothing

Turning equals 3 by the way.

Last edited by matthewthemagical (2009-10-03 16:02:13)


People treat me like I'm just another speck of dust on the floor. But I'm actually a little speck of dust on the ceiling!

Offline

 

#2 2009-10-03 17:18:36

weissjd
Scratcher
Registered: 2007-05-16
Posts: 64

Re: Simple Script Not Working

Make sure that your sprite can rotate. Up above the script tab you'll see three buttons. The top allows your sprite to rotate freely. The next only allows 180 deg. rotation. The bottom allows no rotation at all. Make sure that the top one is selected (light blue).

You can also see the X, Y, and direction of your sprite in that part of the Scratch UI, even if your sprite can't rotate.

Offline

 

#3 2009-10-05 17:53:21

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: Simple Script Not Working

I made the script, and you just have to double-click it to make it work.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

Board footer