Archived

This topic is now archived and is closed to further replies.

Moe

Problem with tutorial: Framerate independant movement

Recommended Posts

I was reading through the new tutorial by Ben Dilts about frame rate independant movement. I came across this line of code:
  
QueryPerformanceCounter(¤tticks);
  
Somethings definitly wrong there. what should be between the brackets?

Share this post


Link to post
Share on other sites
The correct line must be:

QueryPerformanceCounter(/*amperstand*/currentticks);

I write /*amperstand*/ because somthing weird happend if I put
the amperstand character (Shift + 7) I got exactly the following line:

QueryPerformanceCounter(¤tticks); // WEIRD!!


Hope it help you!

Edited by - ogracian on June 12, 2001 11:01:24 PM

Share this post


Link to post
Share on other sites
Thanks! I figured it was something like that but I wasn''t quite sure.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
To prevent the html rendering engine to eat up ampersands you should write them as: & and they show up as: &

Share this post


Link to post
Share on other sites