1. Hey! Guest! The 34th GMC Jam will take place between August 22nd, 12:00 UTC (Thursday noon) and August 26th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

GMS 2 SOLVED : Path timing

Discussion in 'Programming' started by Shizuky, Aug 14, 2019.

Tags:
  1. Shizuky

    Shizuky Member

    Joined:
    Jul 21, 2019
    Posts:
    21
    Hi, wanted to just ask if there is a way to time a path, like after 10 secs of being in room the path stars.
     
  2. johnwo

    johnwo Member

    Joined:
    Jun 20, 2016
    Posts:
    220
    Easiest way would be to set an alarm to room_speed*10 in the create-/room start-event, then do path_start in said alarm.
     
    Shizuky likes this.
  3. IndianaBones

    IndianaBones Member

    Joined:
    Jul 5, 2016
    Posts:
    2,167
    In the Create Event of your object:

    alarm[0] = 10 * room_speed

    In the Event Alarm 0, put your path start code.
     
    Shizuky likes this.
  4. Shizuky

    Shizuky Member

    Joined:
    Jul 21, 2019
    Posts:
    21
    Thank you both!
     
    IndianaBones likes this.

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