Jump to content


Photo

High resolution timer for GM8 [SOLVED]


  • Please log in to reply
4 replies to this topic

#1 Cidwel

Cidwel

    GMC Member

  • GMC Member
  • 23 posts

Posted 31 July 2012 - 06:55 PM

Hello. I'm looking for the High Resolution Timer for Game maker 8. Anyone have this? I'm needing it so badly :(

Edited by Cidwel, 05 August 2012 - 06:31 PM.

  • 0

#2 Tru Pimp

Tru Pimp

    GMC Member

  • GMC Member
  • 106 posts
  • Version:GM8

Posted 04 August 2012 - 04:57 PM

I need one as well not just the ddl but an actual example,I can't complete the game without it. :(
I was just about to start a topic but seeing as it's here...
  • 0

#3 Cidwel

Cidwel

    GMC Member

  • GMC Member
  • 23 posts

Posted 05 August 2012 - 06:30 PM

I need one as well not just the ddl but an actual example,I can't complete the game without it. :(
I was just about to start a topic but seeing as it's here...

Hey trupimp! I faced recently with an example I created with help looooooooooooooooong time ago. Try it!

How to make a methronome:
EVENT CREATE:

BPM = 105;  //set here the beats per minute
    hrt_set_resolution(1000);
    timeID = hrt_marker_add();
    lastBeat = hrt_marker_delta(timeID);
     
    tick_percent = 0;
    tick_divisor = 1;
    delay = 0
    tick_time = 0;


step event:
//BEAT SYSTEM

    tick_time += 1
    
    tick_percent = (tick_time * 100) / tick_divisor;
    if((hrt_marker_delta(timeID)-delay) > lastBeat + (60 / BPM) * 1000) {
       tick_divisor = tick_time;
       sound_play(snd_click); 
       lastBeat += (60 / BPM) * 1000;
       tick_time = 0; 
    }


Thread solved!

Also, actually you can use HRT in GM8, simply add it opening GM with administration priveleges

Edited by Cidwel, 05 August 2012 - 06:30 PM.

  • 0

#4 Tru Pimp

Tru Pimp

    GMC Member

  • GMC Member
  • 106 posts
  • Version:GM8

Posted 05 August 2012 - 10:09 PM


I need one as well not just the ddl but an actual example,I can't complete the game without it. :(
I was just about to start a topic but seeing as it's here...

Hey trupimp! I faced recently with an example I created with help looooooooooooooooong time ago. Try it!

How to make a methronome:
EVENT CREATE:

BPM = 105;  //set here the beats per minute
    hrt_set_resolution(1000);
    timeID = hrt_marker_add();
    lastBeat = hrt_marker_delta(timeID);
     
    tick_percent = 0;
    tick_divisor = 1;
    delay = 0
    tick_time = 0;


step event:
//BEAT SYSTEM

    tick_time += 1
    
    tick_percent = (tick_time * 100) / tick_divisor;
    if((hrt_marker_delta(timeID)-delay) > lastBeat + (60 / BPM) * 1000) {
       tick_divisor = tick_time;
       sound_play(snd_click); 
       lastBeat += (60 / BPM) * 1000;
       tick_time = 0; 
    }


Thread solved!

Also, actually you can use HRT in GM8, simply add it opening GM with administration priveleges

doesn't seem to work for me used:run as administrator but to no avail?? :(
  • 0

#5 Cidwel

Cidwel

    GMC Member

  • GMC Member
  • 23 posts

Posted 06 August 2012 - 01:00 AM

doesn't seem to work for me used:run as administrator but to no avail?? :(


You can't do what? loading the extension? Download this one. Worked in gm8 (not tested in 8.1)
http://www.mediafire.com/?lnv22hped98aeiy

Also remember to open gm with admin privileges the executable inside the root/program files/gamemaker8
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users