two questions
1) how do you reject an empty answer in the "ask __ then wait"; i.e. the user justs hits the enter key without filling in anything in aswer to the question
2) can you keep a script from restarting if a user is just hitting the enter key while your sprite is doing something.
Thanks for the help.
Offline
2.) yes, online the enter key does nothing.
1.)
repeat until <not<(answer)=[]>> //empty space inside the equal spot ask [whatever] and wait end set [answer1 v] to (answer)
Last edited by TorbyFork234 (2012-06-20 15:14:49)
Offline
TorbyFork234 wrote:
2.) yes, online the enter key does nothing.
1.)ask [whatever] and wait repeat until <not<(answer)=[]>> //empty space inside the equal spot ask [whatever] and wait end set [answer1 v] to (answer)
Fixed.
Offline
SciTecCf wrote:
TorbyFork234 wrote:
2.) yes, online the enter key does nothing.
1.)ask [whatever] and wait repeat until <not<(answer)=[]>> //empty space inside the equal spot ask [whatever] and wait end set [answer1 v] to (answer)Fixed.
The first askblock is unneccessary, it will work fine without it. Otherwise, this will fix your problem! Scratch On!
Edit: 1,001st post!
Last edited by sonicfan12p (2012-06-21 04:54:05)
Offline
sonicfan12p wrote:
SciTecCf wrote:
TorbyFork234 wrote:
2.) yes, online the enter key does nothing.
1.)ask [whatever] and wait repeat until <not<(answer)=[]>> //empty space inside the equal spot ask [whatever] and wait end set [answer1 v] to (answer)Fixed.
The first askblock is unneccessary, it will work fine without it. Otherwise, this will fix your problem! Scratch On!
Edit: 1,001st post!
It's necessary because if, earlier in the project, another question was asked, and the answer wasn't blank, the question would never be asked.
What an achievement, by the way.
Offline