# 1 Hour (or 1 Minute) ≈ ? Steps

5 replies to this topic

### #1 gilmouta

gilmouta

GMC Member

• New Member
• 23 posts

Posted 12 January 2009 - 09:30 PM

I need to know approximately how many steps is 1 hour and/or 1 minute.
• 0

### #2 CoolGamrSms

CoolGamrSms

Scorching Strings Maker

• GMC Member
• 1499 posts

Posted 12 January 2009 - 09:32 PM

room_speed*60 = the steps in one minute.
room_speed*3600 = the steps in one hour.
• 0

### #3 gilmouta

gilmouta

GMC Member

• New Member
• 23 posts

Posted 12 January 2009 - 09:49 PM

Thats GML right? Where do I put it? And wont that make my game go faster?
• 0

### #4 CoolGamrSms

CoolGamrSms

Scorching Strings Maker

• GMC Member
• 1499 posts

Posted 12 January 2009 - 10:07 PM

Thats GML right? Where do I put it? And wont that make my game go faster?

It is GML. You can set them to variables, such as min_steps and hour_steps, in the create event. That won't make your game run faster, it only uses the value of room_speed, it doesn't change it.
• 0

### #5 gilmouta

gilmouta

GMC Member

• New Member
• 23 posts

Posted 12 January 2009 - 10:20 PM

I'm kinda confused. How do I make a timer that takes 1 minute (GML) with that?
• 0

### #6 No Face

No Face

GMC Member

• New Member
• 48 posts

Posted 12 January 2009 - 10:52 PM

I'm kinda confused. How do I make a timer that takes 1 minute (GML) with that?

The "step" event happens (room_speed) times per second. So...

CREATE EVENT (if that's where you want to start the timer)
`timer = room_speed*60; //because there are 60 seconds in a minute hurf`

STEP EVENT
```if (timer > 0)
{
timer -= 1;