That's interesting. I'll try implementing this.
It heads toward the point at a way-too-fast speed, then slows down before it gets there. It does move the same incorrect speed each time, and it's way off. The problem is the math. It's just plain wrong and needs to be redone.
Does this movement happen when you start the game or immediately after some long calculation, and slow down to the correct speed after about 1 second?
Anyway, correct it by using current_time or the high resolution timer to compute per-frame time differences. (Save current_time to a variable each step, after using the difference between it and the variable as your time difference)
EDIT: I forgot to mention it, but the problem is that the fps variable updates once a second, and includes time spent during startup (so it starts at 0) and long calculations (so your preparations for the movement might reduce the fps variable (but not actual framerate) for up to a full second after they happen. This is almost certainly the source of your problem.
- Game Maker Community
- → Viewing Profile: Posts: blackmoon
blackmoon
Member Since 06 Jul 2009Offline Last Active Aug 19 2012 09:34 PM
Community Stats
- Group New Member
- Active Posts 421
- Profile Views 2468
- Member Title "Execute order 66."
- Age 17 years old
- Birthday June 2, 1995
-
Gender
Male
2
none
Latest Visitors
Posts I've Made
In Topic: Complex movement to coordinates with tempo
05 March 2012 - 12:43 AM
In Topic: Complex movement to coordinates with tempo
04 March 2012 - 11:14 PM
How is it wrong? Does it move too slow or too fast, and by how much?
Does it arrive slightly off each time? (Usually caused by fps being recalculated every second. Many solutions to this are available)
Does it always tend to move at the same inappropriate speed (for same distance and number of beats)? If so, then you probably got something wrong in your calculations (Maybe tempo is measured using a 59-step system, or something else you've failed to account for)
It heads toward the point at a way-too-fast speed, then slows down before it gets there. It does move the same incorrect speed each time, and it's way off. The problem is the math. It's just plain wrong and needs to be redone.
In Topic: IndieGo Magazine
19 September 2011 - 10:04 AM
Hey, guys. Just came back to ask if it said "Kevin Young" on your magazines, too? Or is it your name? I woke up at 5AM and realized that. And @chance, I don't think it's too ridiculous. I'm just throwing it out there.
In Topic: IndieGo Magazine
18 September 2011 - 06:41 PM
Reading this magazine was almost bearable, until I reached the third blank page. On this page, I saw that it says "Prepared by MagCloud for Kevin Young. Get more at indie-go.magcloud.com"
This would be a reasonable sentence, if not for the name. I've used the pen name "Kevin Young" for quite some time, both at GMIndie and indie(Function);.
The chance of someone on the GMC having the same name as me is .0000000294685055%, judging by the percent of the world population that uses the GMC times the probability of having the name "Kevin Young." This means, yes, there could be 2 people with the name Kevin Young on the GMC. However, this excludes the fact that many, many, many users aren't active at all, and the fact that it's a magazine about indie game development (a super-small fraction of the GMC).
I dunno, this whole thing seems really iffy.
This would be a reasonable sentence, if not for the name. I've used the pen name "Kevin Young" for quite some time, both at GMIndie and indie(Function);.
The chance of someone on the GMC having the same name as me is .0000000294685055%, judging by the percent of the world population that uses the GMC times the probability of having the name "Kevin Young." This means, yes, there could be 2 people with the name Kevin Young on the GMC. However, this excludes the fact that many, many, many users aren't active at all, and the fact that it's a magazine about indie game development (a super-small fraction of the GMC).
I dunno, this whole thing seems really iffy.
In Topic: server.log Help
01 September 2011 - 10:57 AM
OH. Ok, thanks!!
Also, sorry for the late reply. xD
Also, sorry for the late reply. xD
- Game Maker Community
- → Viewing Profile: Posts: blackmoon
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content