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

#1 2012-07-14 13:45:21

bertdog
Scratcher
Registered: 2012-06-12
Posts: 100+

complicated varibles

I am making a part of a game I am working on now and I have three varibles in it right now only two are important for this question, "dollars"varible and "time" varible.does anyone know when time is up two more than the last, 20 dollars are added?


"Losers quit when they are tired,Winners quit when they are done." smile http://blocks.scratchr.org/API.php?user=bertdog&action=onlineStatus

Offline

 

#2 2012-07-14 13:48:46

DonutCannon
New Scratcher
Registered: 2012-07-02
Posts: 29

Re: complicated varibles

Why not just make it so 10 dollars are added every 1 second?

Offline

 

#3 2012-07-14 13:53:15

DoowNimajneb
New Scratcher
Registered: 2012-06-27
Posts: 65

Re: complicated varibles

If time is going up in seconds,
Forever
Wait 1 secs
Change dollars by 20.  smile

Offline

 

#4 2012-07-14 13:56:15

DoowNimajneb
New Scratcher
Registered: 2012-06-27
Posts: 65

Re: complicated varibles

Sorry,
Wait 2 secs
Change dollars by 20

Offline

 

#5 2012-07-14 14:00:45

bertdog
Scratcher
Registered: 2012-06-12
Posts: 100+

Re: complicated varibles

Every time the "time"varible goes up one(or two)the dollars go up as well.


"Losers quit when they are tired,Winners quit when they are done." smile http://blocks.scratchr.org/API.php?user=bertdog&action=onlineStatus

Offline

 

#6 2012-07-14 20:32:37

1s1sKing
New Scratcher
Registered: 2012-07-12
Posts: 30

Re: complicated varibles

You could make an extra count helper variable  smile  if the value is 0, it sets it to 1, if it's one it sets it back to 0 when the time changes and changes the money by ________

Offline

 

Board footer