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

#1 2012-03-03 11:37:48

wjack2010
Scratcher
Registered: 2010-06-28
Posts: 100+

Adding total time

I want to display the total time (in seconds) of how long they have played the game.

E.g, every second the variable "Total Time:" increases by 1 to signify a second.

I've got the variable but don't know what to do with it.

Offline

 

#2 2012-03-03 11:57:39

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Adding total time

Scratch actually comes with a timer (in the sensing category).

when gf clicked
reset timer
forever
set [time played] to (Round(timer))
end


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#3 2012-03-03 12:03:33

wjack2010
Scratcher
Registered: 2010-06-28
Posts: 100+

Re: Adding total time

MoreGamesNow wrote:

Scratch actually comes with a timer (in the sensing category).

when gf clicked
reset timer
forever
set [time played] to (Round(timer))
end

Thank you, that worked  smile

Offline

 

Board footer