Re: Help me with game logic

2020-02-25 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Help me with game logic To calculate delta, record the time the last frame started, then record the time the current frame is going to start, and subtract.  If your time implementation  gives you milliseconds, you'll want to divide by 1000 and store it in a float.The easiest way

Re: Help me with game logic

2020-02-25 Thread AudioGames . net Forum — Developers room : Nuno via Audiogames-reflector
Re: Help me with game logic @2 I know and that's what came to mymind, but further down the road I have found out about something called the Delta time which is actually the time between the last successful completion of a frame and the current frame. How can I calculate it? URL: https

Re: Help me with game logic

2020-02-25 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: Help me with game logic You just need to limit it by e.g. using a time stamp, like this:Whenever the player walks a step, set the last step time to the current time.Whenever the player uses the key and tries to walk, check if the current time minus the last walk time is smaller than

Help me with game logic

2020-02-25 Thread AudioGames . net Forum — Developers room : Nuno via Audiogames-reflector
Help me with game logic hello,I am using Open TK for my game input handling. When my player walk it is incrediby fast, troo fast like 60 times per seconds or so. How should I go with it? Where my game logic should be implemented? URL: https://forum.audiogames.net/post/504085/#p504085