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

#1 2009-01-01 20:51:09

Yoda12999
Scratcher
Registered: 2008-05-30
Posts: 17

Programing Woes

I have been working on a project for the past month on and off, and have run into a major problem that i can not  solve! The problem program is as follows:
[blocks]<when green flag clicked>
<forever>
<if><< << <( 0 <<> <{ Level }> )> <and> <( <{ Level }> <>> 6 )> >> <or> <( <{ Level }> <=> 6 )> >>[/blocks]

Also there other variations of the if part just after that work.
If you ant to see the script email me for it and ill leave a comment in the script pointing it out.

Last edited by Yoda12999 (2009-01-01 20:54:06)


The two fix-alls, duct tape and hitting it with a crowbar!

Offline

 

#2 2009-01-01 21:02:13

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Programing Woes

What you have written there will only be true if Level is greater than or equal to 6.  If you want it to be true from 1 to 6 (which I think is what you want) you should have

   Level > 0   And   Level < 7

Hope that helps!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2009-01-02 09:34:46

Yoda12999
Scratcher
Registered: 2008-05-30
Posts: 17

Re: Programing Woes

yes that is what i want a and I have already tried that. Stupid unreliable glitch....


The two fix-alls, duct tape and hitting it with a crowbar!

Offline

 

#4 2009-01-02 09:46:14

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: Programing Woes

Not a glitch...It's just a programming fault

Offline

 

#5 2009-01-02 16:40:55

Yoda12999
Scratcher
Registered: 2008-05-30
Posts: 17

Re: Programing Woes

another problem, i have a sprite say something then wait for me to press a button and mattering on the button says something different. i have a [blocks]<wait until><key[ space ]pressed?>[/block] but when i press the space it instantly goes through the first option (the options are monitored by a variable).


The two fix-alls, duct tape and hitting it with a crowbar!

Offline

 

Board footer