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

#1 2011-09-08 05:37:45

heylul
New Scratcher
Registered: 2011-09-06
Posts: 5

Display time/score at the end of a game

Hi,
Say I have a game in that has a timer in it. Once the game finishes the timer stops. Simple. Is there a way of like making a sprite to display the time the player got.

I.e I have a variable which adds 0.1 every 0.1 seconds and at the end of the game the counter stops. Is there a way to show the player what their time was?
A fancy way of showing it by the way...

And and the variable timer goes to 100 secs, but i want the time displayed to be in regular time i.e 60 secs= 1 min.

Harder than it looks. Sorry haha. Quick reply would be appreciated, this is for an assignment due soon.

Offline

 

#2 2011-09-08 05:41:05

heylul
New Scratcher
Registered: 2011-09-06
Posts: 5

Re: Display time/score at the end of a game

Whoops wrong section :L
Can Admin please delete this? >_<

Offline

 

#3 2011-09-08 05:42:27

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Display time/score at the end of a game

It doesn't need to be deleted; it can simply be moved to the correct section.  smile

I'll get back to you with a script soon.

Last edited by scimonster (2011-09-08 05:43:22)

Offline

 

#4 2011-09-08 05:44:44

heylul
New Scratcher
Registered: 2011-09-06
Posts: 5

Re: Display time/score at the end of a game

oh haha thanks  smile

Offline

 

#5 2011-09-08 06:56:03

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Display time/score at the end of a game

Create costumes from 0-9, in that order. Make sure 0 is the first costume. Also create costumes that say "Your time was" "Your score was" and ":".

http://weebly.com/uploads/8/1/3/6/8136364/8908546.gif
Sorry for the terrible image quality. D:

Last edited by scimonster (2011-09-08 06:56:52)

Offline

 

#6 2011-09-08 07:21:36

heylul
New Scratcher
Registered: 2011-09-06
Posts: 5

Re: Display time/score at the end of a game

amazing dude. I will be sure to acknowledge you in my assignment.  big_smile

Thanks  smile

Offline

 

#7 2011-09-08 07:33:17

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Display time/score at the end of a game

sci, i just can't believe you didn't tell him he uses a bad methodtongue

Offline

 

#8 2011-09-09 05:52:57

heylul
New Scratcher
Registered: 2011-09-06
Posts: 5

Re: Display time/score at the end of a game

aww come on. I'm new to this >_<

First year learning programming haha.

Kinda makes sense though (to an average person...). Wait 0.1 secs, add 0.1.  tongue

Offline

 

Board footer