Page 1 of 1

playback speed

Posted: Mon Nov 19, 2007 12:14 am
by luc
my project saves just fine and the stand alone plays great on my own computer. however, when i distribute it over the internet and go to a different comupter to run it the speed is way to fast.

my character's lips go very, very fast. much faster than on my own computer. i went back and added extra cards too slow down the speech animation. on my computer it does slow down but when i play it on the internet it s too fast again.

any ideas ?

Posted: Mon Nov 19, 2007 10:07 am
by n.allan
What are you using to time between each frame of your animation? If it were me I would use a global constant such as milliseconds or ticks, thus when you play back on any machine, the time between the frames will be the same.

to play 30 frames you could use:

repeat with tCount = 1 to 30
--show frame tCount or whatever
wait 10 ticks with messages
next repeat

be sure to use the with messages or runrev will seize control of the app until the lopp has finnished.

Posted: Mon Nov 19, 2007 10:11 am
by Mark
Luc,

I assume you have a simple repeat loop to play the animation. Try this instead:

Code: Select all

on goNextCard
  go next cd
  if number of this cd < the number of cards then
    send "goNextCard" to me in 83 millisecs
  end if
end goNextCard
To start the animation, you can use a button:

Code: Select all

on mouseUp
  goNextCard
end mouseUp
Best,

Mark