Jump to content

  • Log In with Google      Sign In   
  • Create Account

Calling all IT Pros from Canada and Australia.. we need your help! Support our site by taking a quick sponsored surveyand win a chance at a $50 Amazon gift card. Click here to get started!






Creature movement

Posted by RetroIP, in General 27 March 2013 · 554 views

movement pnn projectnn creature
Hallo gameDev,
Recently I'v finished "game speed" property. This parameter I need to speed up some simulation parts. Now, finally, is engine working properly. I'v measured right Creature speed across different game speed settings and I'v realized that my previous algorithm was making phantom time differences in higher speeds. Currently is everything all right, and creatures are moving exactly fast in every game speed.

Something to my timer settings:
1.Main Update is runnig at 25 fps (40msec)
2.Background Update is running at 4 fps (250msec)

With speed of "2" I have updates in 125msec/20msec. Speed modifier is just divider to the timers.

Screens from right results for creature movement in speed of "1" and "2". Delta time is now correct.
Attached Image Attached Image

The brake parameter is criterion of how to slow down creature movement until they are facing right direction. More angle they need turn, more brake is needed to ther movement

Curretnly I'm working on Nature as gameObject type and its substances.




August 2015 »

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
30 31      

Recent Entries

Recent Comments

PARTNERS