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

#1 2011-03-03 03:47:14

geladobr
New Scratcher
Registered: 2011-03-03
Posts: 3

Decreasing time system.

Hello guys ..I´m trying to do a decreasing time system for my project. I create a variable named time ... and I made a repeat until time is equal 0 ... (time starts at 60) ... in this repeat I inserted "change time by -1"  ... but when I run my project time stucks in 59 ... I don´t know what I can do. A little help from u guys would be great!

Offline

 

#2 2011-03-03 04:31:32

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

Re: Decreasing time system.

Is there something else making it stay at 60?

Offline

 

#3 2011-03-03 04:51:29

geladobr
New Scratcher
Registered: 2011-03-03
Posts: 3

Re: Decreasing time system.

no ...I have a reset... U start the project and the time is reseted back to 60 ...but I put a stop script in the reset script.

Offline

 

#4 2011-03-03 06:16:31

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Decreasing time system.

A stop script will stop the whole script - if the reset part and decreasing part are in the same script, you'll be stopping the script before the decreasing can start. Is that what you're doing?


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

Board footer