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

#1 2013-02-12 09:10:12

mr_sm0000th
New Scratcher
Registered: 2013-02-12
Posts: 1

Maths Game

Hi Guys ..

Im new to the site and wanted some help with Scratch programming never used the software before so im getting use to it.
But im trying to create a game that supports kids learning in maths. The user selects which maths game he wants to play i.e Addition / Subtraction / Division etc and the computer brings up the program.

Im trying to set a timer so the user has a set time to answer an certain number of questions. 

can anyone help with the script?

Offline

 

#2 2013-02-12 12:31:52

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: Maths Game

Have a variable called timer.
Have a script (this one gives twenty seconds per question and 10 questions) that says something like:

when I recieve [addition v]
set [timer v] to [0]
show variable [timer v]
repeat (10)
repeat (20)
wait (1) sces
change [timer v] by (1)
end
set [timer v] to [0]
end
hide variable [timer v]
Do one script like that for each type of question.
Hope that helps (and that the scratchblocks worked)

Offline

 

#3 2013-02-12 16:56:01

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Maths Game

shadowmouse wrote:

Have a variable called timer.
Have a script (this one gives twenty seconds per question and 10 questions) that says something like:

when I receive [addition v]
set [timer v] to [0]
show variable [timer v]
repeat (10)
repeat (20)
wait (1) secs
change [timer v] by (1)
end
set [timer v] to [0]
end
hide variable [timer v]
Do one script like that for each type of question.
Hope that helps (and that the scratchblocks worked)

Fixed.


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer