• Hey! Guest! The 40th (!!!) GMC Jam will take place between February 25th, 12:00 UTC to March 1st 12:00 UTC. Why not join in this very special anniversary jam! Click here to find out more!

delta time

  1. Adriano_ppaula

    GML Help with delta_time

    Hello everyone! I was watching some tutorials on frame rate and delta_time. I found these two vidios just fantastic on the subject. But I have some doubts about that. Is there a way to do this in room_speed? For example I have a game that I have been working on for 3 years, it is a giant...
  2. flyinian

    Design Questions about Delta time, lag with incremental/click based game.

    1. Is Delta timing good for a incremental/click based game? 2. If I have variables doing calculations per step, and the game lags, will it cause issues for me? Ex: if I had two variables relying to be in sync, and become out of sink due to lag. Or is that lag just voided steps and the...
  3. samspade

    GML Delta Time

    I'm trying to refine my delta time system. In side by side comparisons though I'm struggling to accomplish similarness. Maybe it is just what it is supposed to be but it seems a little strange. So all I have is two objects that do that fall to the bottom of the screen and bounce: //normal...
  4. S

    Delta Time speed problem

    I'm having a very bizarre delta time problem that I can't figure out how to fix. Accelerations actually work perfectly, since I followed this tutorial: https://web.archive.org/web/20160307185547/https://www.niksula.hut.fi/~hkankaan/Homepages/gravity.html The problem is this: when I make my...
  5. F

    GML Keep platformer jump height consistent with different frame rates

    Hi all, I want to achieve a platformer jump similar to that of Super Mario Bros. (keep pressed the jump button to jump higher) and I want it to be frame rate independent. At 30 FPS (i.e. Room Speed = 30) it works as I want. However, I noticed that, if frame rate is lower (e.g. 10 FPS) the jump...
  6. K

    GML Deltatime Metronome not accurate/constant

    I tried making a metronome in Gamemaker which ticks to a previously specified Bpm. I used the following code: MetronomeBeatsPerSecond = MetronomeBpm/60 MetronomeSecondsPerBeat = 1/MetronomeBeatsPerSecond //tickup every real sec MetronomeTotalSeconds += (delta_time*0.000001); if...
  7. samspade

    Asset - Objects Character Asset Pack

    Available for both GMS 1 and GMS 2 Description Comprehensive and easy to use, this pack is a great foundation for creating a great side-scrolling platformer player object. It contains over 40 character movement abilities for a 2D platformer ranging from simple to complex. If you buy the pack...
  8. Sergio

    GMS 2 [Solved] Weird Delta Time on room_restart

    Hello: My project does something strange on room_restart or room_goto. Room speed is set to 60 fps, and my delta time, first time looks like this: delta_time: 16749 delta_time: 16576 delta_time: 16846 delta_time: 16500 the problem is when I execute a room_restart, delta_time switchs to...
  9. Felipe Rybakovas

    Delta Time System General Discussion

    Hi, I started a discussion about the delta time system in my profile. Was such good discussion that the best way was to create a topic for that. To take a better advantage on this, I´m creating this topic so we can group all the information. So if you have any good article, GML implementation...
  10. B

    GML How to create a timer using delta time?

    I'm working on a game and I decided to use delta time and set the game speed to 240 (Yes it's overkill) but I've noticed when using the standard alarms and setting it to be the game speed (So it should execute after one second) it takes much longer using the UWP export. It works perfectly on...
  11. John Andrews

    Frame skipping, is it possible in GM?

    Hello everyone, from the day I've been using GM in a more professional way, I've been experiencing issues with the games slowing down for various reasons, but my problem is that the game slows down without skipping frames as it should normally do, now, is there a way to implement this in Game Maker?
  12. L

    [SOLVED] Delta timing not working

    So I had some code for a game I was working on. I forgot to do delta timing thing so that everything would be consistent. When I changed everything to delta timing, on of my systems got messed up and I don't know how to fix it. Here is the code For reference, "attack_counter" = 10 and...
  13. T

    Delta time and particle system

    Hi guys, just a quick question. Is there any possible way to adjust the build in particle systems speed, lifetime etc. to delta time, or am I forced to use my own system? I know that I can update the particle system manually, but that doesn't bring me anywhere, because I obviously can't update...
  14. FrancisClase

    Legacy GM Any Collision Solution for Delta Time?

    When using delta time my collisions fail, I have seen that they have spoken many times of this topic in the forum, but nobody has given solution to this, it is as if they said "You can do a game with delta Time" but when I ask for the collisions No one knows what to do, I think it's time to make...
  15. J

    Job Offer - Programmer [PAID] Make game independent of fps

    I have a game that needs to work the same on all devices, slow and fast. The game is called Flappy Cat and can be downloaded on Google Play. The code isn't perfect structured, so it can be a little bit hard to find your way around the code. But this is a small simple game, so it...
  16. J

    Working with different fps

    I have a game where my room speed is 60. But on some older Android devices they can't get that much fps which means everywhere where I have alarm[0] = 100; or hspeed = -4; It doesn't give the same result. I started just moving down to 30 instead of 60, but on the iOS simulator I often get less...
  17. S

    Delta Time with Gravity

    I'm trying to make a 2D platformer engine that has support for delta time. https://www.niksula.hut.fi/~hkankaan/Homepages/gravity.html Everyone says this method is the best way to get gravity working with delta time. It's basically coded like this: velocity = velocity + gravity*delta_time/2...
  18. Nux

    The Physics world and Delta timing

    Hiya, I've been trying to make the physics world work within my game for about an hour now and I just... can't... do it! I have all the physics working at normal speed but when the player lags, the physics world slows down (which I know it should because of a lack of delta timing; it makes...
  19. acidemic

    delta_time problem on Windows 7

    In my game I am using delta_time variable. I have a persistent "obj_delta_control" object which has following code in the "Begin Step" event: global.delta = 60 / 1000000 * delta_time; Then I multiply "global.delta" variable to all speed, movement, delay, alarm... variables in the game. The...
  20. icuurd12b42

    Asset - Project TMC Delta-T Engine

    TMC Delta-T Engine Outputs: All Type: Template/Starter Project Included: Scripts, Example Sprites, Example Objects and Demo Room Demo: https://onedrive.liv...45D1EA9168D!747 Marketplace: https://marketplace....-delta-t-engine Flickering Fix For Newer Studio Versions...
Top