1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

What is the relationship between alarm function and room_speed?

Discussion in 'Programming' started by seojaeoh, Jan 26, 2019.

  1. seojaeoh

    seojaeoh Member

    Joined:
    Jan 22, 2019
    Posts:
    31
    how to create delay with alarms and room speed?-_-?
     
  2. Catan

    Catan Member

    Joined:
    Jun 20, 2016
    Posts:
    754
    Alarms are set in steps, while the room_speed represents the number of steps per second.
    By multiplying the number of steps * room_speed you get a value in seconds.

    This means that alarm[0] = room_speed * 4 is effectively setting the alarm0 to 4 seconds (as long as your game isn’t lagging)
     
  3. seojaeoh

    seojaeoh Member

    Joined:
    Jan 22, 2019
    Posts:
    31
    thank you catan :)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice