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

#1 2012-12-02 20:00:30

karadakota
New Scratcher
Registered: 2012-11-20
Posts: 1

Timer goes too fast

So in my game I have a timer that counts from 60 down to 0. the problem with my timer is that as the game progresses through the levels, the timer goes faster and faster. It's supposed to be 60 seconds, but on level 2 it's goes so fast that it's 30 seconds. The scripts are all the same for every level and it works perfectly for level one. Any suggestions????

Offline

 

#2 2012-12-02 23:05:18

thebriculator
Scratcher
Registered: 2011-07-11
Posts: 500+

Re: Timer goes too fast

set [time v] to []
reset timer
repeat until <(time) = [0]>
set [time v] to ((60)-(round((timer)-(0.5))))
end
say [end game]

Last edited by thebriculator (2012-12-02 23:05:29)


.     http://tiny.cc/2cwgpw    http://tiny.cc/viwgpw    http://tiny.cc/iwwgpw

Offline

 

#3 2012-12-03 02:40:07

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Timer goes too fast

You probably have two or more scripts  changing the variable at once.


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

Board footer