app.DeltaTime sync with frame rate
Posted: Mon Jun 10, 2019 8:12 am
Hey z game forum.
I'm working on a platform game in z game editor and I've just noticed that the main character jumps lower (in terms of height)
on a slow pc
rather than on a fast pc.
Obviously I'd like to have a standard height reached regardless of the speed the game is currently running on.
the Y position of the main character is currently set as currentmodel.position.y+grav
and "grav" is set to grav-=app.DeltaTime/1
any idea why this isn't syncing to the speed of the pc?
I was under the impression that adding app.DeltaTime fixed this problem.
J
I'm working on a platform game in z game editor and I've just noticed that the main character jumps lower (in terms of height)
on a slow pc
rather than on a fast pc.
Obviously I'd like to have a standard height reached regardless of the speed the game is currently running on.
the Y position of the main character is currently set as currentmodel.position.y+grav
and "grav" is set to grav-=app.DeltaTime/1
any idea why this isn't syncing to the speed of the pc?
I was under the impression that adding app.DeltaTime fixed this problem.
J