Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Eons

  1. #11

    Eons

    Making it just slower will not solve the problem that it runs slow on one machine and fast on another... you need to make game calculations framerateindependant... or is it just too fast?
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  2. #12

    Eons

    I have made it frame rate independant but my calculations might be a bit too fast. I did test it on a very fast machine and it seemed fine as well as on a slow machine...but then again I might think it's fine as it is and someone else might think it's not.

    I wanted it fast i.e. the player's left and right movement so that bombs from above can be dodged...

    This is how the player will move:

    Code:
    dxtimer1.Interval&#58;= 1000 div 100;
       NewTime &#58;= TimeGetTime;
       UpdateSpeed &#58;= &#40;NewTime - OldTime&#41; * OneMSec; 
       OldTime &#58;= NewTime;
    Where OneMSec: Single = 100/1000;

    and

    Code:
    if &#40;isLeft in form1.DXInput1.States&#41; and&#40;x>5&#41; then
        X &#58;= X - &#40;10 * UpdateSpeed&#41;;
    I can make all objects in my game slower by changing the value of OneMSec to maybe 70/1000 :-)
    Wake up from the dream and live your life to the full

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •