This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » New Scratchers
  •  » Help i need to know how to make some thing be in between like 10 to 20

#1 2011-06-26 14:39:06

jokarge
New Scratcher
Registered: 2011-06-25
Posts: 1

Help i need to know how to make some thing be in between like 10 to 20

I was making a game but then i needed some thing to be in between i was making money but theres a glitch to have negitive money and i dont want that to happen so i decided to make something so if the amount of money you have is in between -1000000 to 0 then it will say ilegal buy gameover but i dont know what an in between symbol is i looked all over the operator tab but i dont know what the symbol is please help

Offline

 

#2 2011-06-26 14:49:57

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Help i need to know how to make some thing be in between like 10 to 20

Are you looking for this block: http://wiki.scratch.mit.edu/images/Pick_Random_%28%29_to_%28%29.png ?

Last edited by scimonster (2011-06-26 14:50:07)

Offline

 

#3 2011-06-26 16:49:14

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Help i need to know how to make some thing be in between like 10 to 20

If you need the check whether the number is less than 0 (negative number), use this block in the operators category:

http://i55.tinypic.com/30kacg3.gif

Just place the variable (money, I assume) in the left and 0 in the right, and Scratch will interpret it kinda like "is money less than 0?" which can, of course, be true or false (that's called a "boolean" in programming lingo  tongue  ).


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#4 2011-06-26 19:38:11

mad11221
Scratcher
Registered: 2011-06-26
Posts: 1

Re: Help i need to know how to make some thing be in between like 10 to 20

how do i make a project i downloaded it but i accedentally xed it out!<switch to costume[ <play sound[

Offline

 

#5 2011-06-26 20:24:13

Rendrag
Scratcher
Registered: 2010-03-21
Posts: 5

Re: Help i need to know how to make some thing be in between like 10 to 20

What you do is put in an <if> and put a<(  <<>  )>and set it so that it says If Money(or whatever variable) < 0
smile


Simply Stated,
I'm Awesome

Offline

 

#6 2011-06-27 00:39:13

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Help i need to know how to make some thing be in between like 10 to 20

technoguyx wrote:

If you need the check whether the number is less than 0 (negative number), use this block in the operators category:

http://i55.tinypic.com/30kacg3.gif

Just place the variable (money, I assume) in the left and 0 in the right, and Scratch will interpret it kinda like "is money less than 0?" which can, of course, be true or false (that's called a "boolean" in programming lingo  tongue  ).

Oh, I misunderstood the question. Technoguyx is correct.

Offline

 
  • Index
  •  » New Scratchers
  •  » Help i need to know how to make some thing be in between like 10 to 20

Board footer