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

#1 2013-04-05 19:00:38

Zac-la
New Scratcher
Registered: 2013-03-24
Posts: 1

Adding age restriction in game

So basically I have to make a short quiz using Scratch for a school project. I'm supposed to make the Sprite ask how old the user of the quiz is, they have to be between 6-8. How do I program it so it will allow people who are that age to use it and not allow people how are old/younger?

Offline

 

#2 2013-04-05 19:13:03

Hyperbola
Scratcher
Registered: 2013-03-15
Posts: 100+

Re: Adding age restriction in game

when gf clicked
ask [What's your age?] and wait
if <(answer) < (6)>
say [Sorry, you can't play] for (3) secs
stop all
end
if <(answer) > (8)>
say [Sorry, you can't play] for (3) secs
stop all
end
Continue here


Tip of the whatever: Don't post in threads older than 2 weeks unless your post will actually be useful.
It's the last day of 1.4! *cries* (quote from NeilWest, rest by me) by the time you read this it probably will be 2.0  sad

Offline

 

#3 2013-04-06 09:25:36

Maltese_Falcon
Scratcher
Registered: 2013-03-25
Posts: 100+

Re: Adding age restriction in game

when gf clicked
if (((answer) < (6)) or ((answer) > (8)))
say [Sorry, you cannot play] for (3) secs
stop all
end
continue your scripts for if you are 6-8 here...

Offline

 

#4 2013-04-06 10:04:48

NoxSpooth
Scratcher
Registered: 2013-03-19
Posts: 500+

Re: Adding age restriction in game

Maltese_Falcon wrote:

when gf clicked
if <<(answer) < (6)> or <(answer) > (8)>>
say [Sorry, you cannot play] for (3) secs
stop all
end
continue your scripts for if you are 6-8 here...

Fixed.


http://i1244.photobucket.com/albums/gg572/BLU_Spy/Best-Cry-Ever_zps3b2b857a.gif Goodbye, 1.4... We'll miss you...

Offline

 

Board footer