
-----------------------------------
[Flame][Boy]
Wed Dec 14, 2005 6:59 pm

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. :?

-----------------------------------
Paul
Wed Dec 14, 2005 7:01 pm


-----------------------------------
I've had that problem in grade 10 too :)
Try looking at the [url=http://www.compsci.ca/v2/viewtopic.php?t=859&start=0]framerate tutorial

-----------------------------------
[Flame][Boy]
Wed Dec 14, 2005 7:12 pm


-----------------------------------
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
Wed Dec 14, 2005 8:04 pm


-----------------------------------
First: we can't really help without code. Second, if you do post code make sure it's properly commented and indented :P

-----------------------------------
iker
Wed Dec 14, 2005 8:27 pm


-----------------------------------
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
Wed Dec 14, 2005 8:32 pm


-----------------------------------
use the Time.DelaySinceLast () at the end of a loop

for example

%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
Wed Dec 14, 2005 8:43 pm


-----------------------------------
extremely hard :roll:  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
Wed Dec 14, 2005 8:52 pm


-----------------------------------
extremely hard :roll:  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 :P
