Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
slow down time
#3
My apologies for butting in on your conversation... After reading the part about 'delta time', I could not help but recall a similar problem that I had using rcbasic... Movement of spites/bullets were moving way too fast.

Code:
timeDelay = 0

...

function updateDelta()
    dt = (Timer - timedelay) * 0.001
    timedelay = Timer
    return timedelay
end function

Calling updateDelta() during the main game loop solved my issue. Of course, this was not written with N7, but should be easily converted... I hope that I have not added to your difficulties... I will not be offended if you choose not to use this or find a better method...

J
Logic is the beginning of wisdom.
Reply


Messages In This Thread
slow down time - by aliensoldier - 09-28-2024, 01:45 PM
RE: slow down time - by Marcus - 09-28-2024, 05:53 PM
RE: slow down time - by johnno56 - 09-28-2024, 09:28 PM
RE: slow down time - by Marcus - 09-29-2024, 09:40 AM
RE: slow down time - by 1micha.elok - 09-30-2024, 04:53 AM
RE: slow down time - by aliensoldier - 10-04-2024, 05:36 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)