Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Different Computers Different Speeds
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
[Flame][Boy]




PostPosted: Wed Dec 14, 2005 6:59 pm   Post subject: Different Computers Different Speeds

Hey guys im making a ball game right now and the ball speed is so ranged from computer to computer is it possible to put sumthin in the code to make it run the same on all pc's. Confused
Sponsor
Sponsor
Sponsor
sponsor
Paul




PostPosted: Wed Dec 14, 2005 7:01 pm   Post subject: (No subject)

I've had that problem in grade 10 too Smile
Try looking at the framerate tutorial
[Flame][Boy]




PostPosted: Wed Dec 14, 2005 7:12 pm   Post subject: (No subject)

Wow that tutorial is confusing as hell.. is there a simpler way i heard "Time.DelaySinceLast()" was an easier way but i just don't know where to put it.
md




PostPosted: Wed Dec 14, 2005 8:04 pm   Post subject: (No subject)

First: we can't really help without code. Second, if you do post code make sure it's properly commented and indented Razz
iker




PostPosted: Wed Dec 14, 2005 8:27 pm   Post subject: (No subject)

use the Time.DelaySinceLast () at the end of a loop

for example
[code]
%variables

%procedures
proc a..
proc b..
proc c..
%ect..

loop
a
b
c
%ect..
View.Update
Time.DelaySinceLast ()%see, right at the end of a loop
end loop

anyways, if i could see some code, even just an example of what your doing, I could tell you exactly where to put it, but make sure you only have one delay or time.delaysincelast in the code,or else it will still vary
md




PostPosted: Wed Dec 14, 2005 8:32 pm   Post subject: (No subject)

iker wrote:
use the Time.DelaySinceLast () at the end of a loop

for example
Turing:

%variables

%procedures
proc a..
proc b..
proc c..
%ect..

loop
    a
    b
    c
    %ect..
    View.Update
    Time.DelaySinceLast ()%see, right at the end of a loop
end loop


anyways, if i could see some code, even just an example of what your doing, I could tell you exactly where to put it, but make sure you only have one delay or time.delaysincelast in the code,or else it will still vary


How hard is it to pres "Preview" before posting?!
iker




PostPosted: Wed Dec 14, 2005 8:43 pm   Post subject: (No subject)

extremely hard Rolling Eyes it was a mistake, don't worry about it, its not the end of the world...
Idea just for you, i'll preview this post to make sure its up to your standards
md




PostPosted: Wed Dec 14, 2005 8:52 pm   Post subject: (No subject)

iker wrote:
extremely hard Rolling Eyes it was a mistake, don't worry about it, its not the end of the world...
Idea just for you, i'll preview this post to make sure its up to your standards

Sorry... me + stress == yelling at people. Yeah not previewing isn't a big deal; but since edits are turned off in the help forums it's a good idea Razz
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 8 Posts ]
Jump to:   


Style:  
Search: