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

#1 2012-07-01 16:33:54

neelix087
New Scratcher
Registered: 2012-06-23
Posts: 4

text input

I want a script so that if a count hits 10 then the background flashes.

A popup appears that requires a Y or y to reset the count to zero and stop flashing.

if count >9
then
  switch background 1
  wait .2 seconds
  switch background 2
  wait .2 seconds
set question to pop up 'Do you wish to reset the system state? Press Y or y' and get input
if question = Y or question = y
set count to zero

It works so far, but when the input is entered it always asks twice and it doesn't seem to matter what is entered.

aaagh

Offline

 

#2 2012-07-02 01:54:34

AddInnovation
Scratcher
Registered: 2011-11-16
Posts: 57

Re: text input

Hi, please post a link to your project and I'll have a look at the logic.

Offline

 

Board footer