[Thread Prev] [Thread Next]
I made the following mofif to your project (and some other minor modifs):
The dino moves on a "forever [fd 5 wait 0.1]" instead of "forever [fd 0.5]"
This makes it "a lot less sensitive" to other processes.
Without the wait, the speed at which the dino can move depends on how busy
the computer is. When you start new processes (like the ball falling), the
computer gets busier and the dino slows down.
With the wait, the dino is less sensitive because wait is only sensitive to
time, not to the computer being busy.
Analogy:
If you can read 10 words in 60 seconds, very slowly but continuously, there
is a chance that it will take you longer if I suddently ask you to count
numbers at the same time.
If you read the same 10 words, very rapidly but taking a 5 second pause
between each word, you will get to the same place (end of your list) even if
I suddently ask you to count numbers at the same time. You used the "waiting
cycles" of your brain to do the number thing.
Hope this helps.
AT
-----Original Message-----
From: mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Burke,
Bridget - CKJH
Sent: Tuesday, May 13, 2008 3:32 PM
To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [MWForum] Processing Trouble
This project was supposed to simulate a ball falling. Users can put in the
speed of the ball. The intended target is the dinosaur rolling by below. The
only problem is when the ball starts falling the speed dinosaur slows down.
Can anyone help solve this?
Attachment:
parab.mwx
Description: Binary data
Previous by thread:
RE: Processing Trouble
Next by thread:
Re: rotate several turtles in a circle way
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.
|