Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

problem about lesson 10

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Chinglisher   Members   

100
Like
0Likes
Like

Posted 16 October 2011 - 02:55 AM

i changed

xpos += (float)sin(heading*piover180) * 0.05f;
zpos += (float)cos(heading*piover180) * 0.05f;
into

xpos += (float)sin(heading*piover180) * 0.0005f;
zpos += (float)cos(heading*piover180) * 0.0005f;
then i run the program finding the scene shakes when i press UP or DOWN to move,
it doesn't move in a smooth way, can anyone tell how to solve this?

#2 lc_overlord   Members   

436
Like
0Likes
Like

Posted 17 October 2011 - 03:53 AM

It's most likely because the lesson doesn't use a delta time value, instead movement is based on how many frames are rendered, so any inconsistencies in the frame rate show up as shaking or stuttering in the movements, adding delta time compensates for that, so do skip ahead to lesson 32 an learn how to implement it.

#3 Chinglisher   Members   

100
Like
0Likes
Like

Posted 03 November 2011 - 02:06 AM

It's most likely because the lesson doesn't use a delta time value, instead movement is based on how many frames are rendered, so any inconsistencies in the frame rate show up as shaking or stuttering in the movements, adding delta time compensates for that, so do skip ahead to lesson 32 an learn how to implement it.


thank you




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.