Edited by Cidwel, 05 August 2012 - 06:31 PM.
High resolution timer for GM8 [SOLVED]
#1
Posted 31 July 2012 - 06:55 PM
#2
Posted 04 August 2012 - 04:57 PM
I was just about to start a topic but seeing as it's here...
#3
Posted 05 August 2012 - 06:30 PM
Hey trupimp! I faced recently with an example I created with help looooooooooooooooong time ago. Try it!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...
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.
#4
Posted 05 August 2012 - 10:09 PM
doesn't seem to work for me used:run as administrator but to no avail??Hey trupimp! I faced recently with an example I created with help looooooooooooooooong time ago. Try it!
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...
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
#5
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 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











