I desperately need help figuring out this mathematical conundrum. I've never been good at math so I'm pretty much fried. I'm trying to create a metronome in Game Maker (I have reasons) and GM is sadly so screwed up you have to bust your brain to figure everything out. I've discovered that the perfect second in the alarm system is a delay of 30 between each alarm. Now, to calculate the delay time of a tempo beat is simple because there are 60 seconds in a minute, and 1000 milliseconds in a second, so that's 60 * 1000, which totals 60000. Fair enough. All I really need is to sort out how to calculate a proper timing mechanism to get all of this sorted out. Since I'm dumb in math I could only think of this:
Let me rephrase: Say I used the precise timing DLL, I still need an interim to figure out how to calculate the correct timing I want. That's all I'm asking for now.
It'll do it in ms, most likely. 1000 ms = 1 second.
You'll want to do something likewhile 1 now=(whatever the function for current time is) wait until (function for current time)-now<1000 tick()Aww, snap, stripped my tabbing.
create or something:
sir Xemic, you're a freaking genius! Thanks :D
Use what sir Xemic wrote, it works!
I'm your problem, leemcd56 got a good solution.