09-28-2024, 09:28 PM
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.
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
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.