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

#1 2013-03-19 21:22:49

ScratchMine
New Scratcher
Registered: 2013-03-19
Posts: 2

How to repeat "ask" until I receive the right answer...

Hi guys. I need help with my scratch project.

Basically, I just need my sprite to ask the user to confirm the day of the week using the "ask" function and "repeat until" function.

In other words, I want my sprite to say: Please confirm what day of the week it is.
The "answer" box will pop up, and will only proceed if the answer = any of the seven days of the week.

How do I do this? This is what I have and it's not working. It just goes straight to the "Sweet! Because today is a week day" part.

This is really frustrating (and I'm doing this for a class). So can anyone help? Thanks.

http://i.imgur.com/OkdYriq.jpg

Offline

 

#2 2013-03-19 21:30:23

Harald
New Scratcher
Registered: 2013-03-05
Posts: 34

Re: How to repeat "ask" until I receive the right answer...

You might have the day constantly set to either of the days in the week. It doesn't repeat that first process, because the day of the week is already set. Try this:

 
when gf clicked
set [DayOfWeek v] to [Blank]
rest of script..

Offline

 

#3 2013-03-19 21:38:38

Harald
New Scratcher
Registered: 2013-03-05
Posts: 34

Re: How to repeat "ask" until I receive the right answer...

I also noticed that there's no way to set the day to Saturday or Sunday, but there are three Fridays. It's probably best that way though, since you get to skip the parking fee.
Anyways, good luck with your project!

Offline

 

#4 2013-03-19 22:20:11

ScratchMine
New Scratcher
Registered: 2013-03-19
Posts: 2

Re: How to repeat "ask" until I receive the right answer...

That pretty much solved it. Thanks Harald!

Offline

 

Board footer