Limit Room Speed, But Not Fps.
#1
Posted 22 December 2008 - 12:48 PM
regardless of the fps.
user 1's computer could do 120 fps it would be very smooth.
user 2's computer could do 20 fps it would be very choppy.
but if user 1 and user 2 were to race they would tie, regardless of fps.
meaning because player 2 has low fps hes game doesn't slow down hes just has choppy game play.
no I'm not making a racing game. I don't want to limit the fps.
I want to have as many fps as possible but I want the movements in game to be the same speed.
#2
Posted 22 December 2008 - 01:37 PM
Edited by Nehacoo, 22 December 2008 - 01:37 PM.
#3
Posted 22 December 2008 - 06:42 PM
//dividing with 0 crashes the game if fps=0 exit; //the max speed is 240 a 1 fps or 8 at 30 fps speed=240/fps if keyboard_check(vk_left) direction+=120/fps
get what i mean?
#4
Posted 22 December 2008 - 07:09 PM
#5
Posted 22 December 2008 - 08:38 PM
Delta Time Platform Engine
It has a bunch of stuff to control the timing of the game and animations and stuff... Basically I take control away from Game Maker when it comes to running the step events for the game objects and have the main game controller do it. It runs fractions of a game tick per step if running fast enough, and if it's running below the ideal FPS it runs additional game ticks per step. I don't want it to just skip those game ticks since it's much harder to detect collisions if the object needs to move a large enough distance.
I'm working on a newer version with fixed glitches and a small element of physics for items laying on the ground getting blown away by a rocket launcher. That's almost done...
If you're making a top down shooter or something instead of a platform game you can still use this since it has the basic delta time controls if my way is the way you want to do it. It's a little more like frame skipping but it has the exact effect that you're looking for.
Edited by Potnop, 22 December 2008 - 08:42 PM.
#6
Posted 23 December 2008 - 04:50 AM
Well I have a platform game engine using delta time... It uses Yourself's timing dll.
Delta Time Platform Engine
It has a bunch of stuff to control the timing of the game and animations and stuff... Basically I take control away from Game Maker when it comes to running the step events for the game objects and have the main game controller do it. It runs fractions of a game tick per step if running fast enough, and if it's running below the ideal FPS it runs additional game ticks per step. I don't want it to just skip those game ticks since it's much harder to detect collisions if the object needs to move a large enough distance.
I'm working on a newer version with fixed glitches and a small element of physics for items laying on the ground getting blown away by a rocket launcher. That's almost done...
If you're making a top down shooter or something instead of a platform game you can still use this since it has the basic delta time controls if my way is the way you want to do it. It's a little more like frame skipping but it has the exact effect that you're looking for.
download link is broken in link
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











