[Golist] upcoming Go version 0.4.5...

Moses Gunesch moses at goasap.org
Fri Mar 21 23:43:36 PDT 2008


Well the time had come to add a useFrames option to LinearGo... it was  
pretty much the last major tween feature to fall. :)

Go is so weirdly flexible — you can actually useFrames but also set a  
pulseInterval other than the player framerate.. very cool. But to make  
it easy for normal project use, I added a static method  
setupUseFramesMode() which turns on useFrames by default for all new  
tweens and sets the default pulse to ENTER_FRAME which is how you'd  
typically want it set up. I also added an advanced option to use a  
zero-based index for currentFrame, but the default behavior is that if  
you run a useFrames tween with a duration of 10, it will count from 1  
to 10 just like the flash timeline.

Not that I'm recommending useFrames by the way – time-based updates  
are way better because they sync to the clock. Frame based updates are  
like the timeline, they lag with the processor. However, there are  
always certain moments when you need these things (like... if you're  
building collada tweens right? wink wink.)

The only sticking point I ran into was good old skipTo()... always a  
chore. I'm not really happy with skipTo's regular time-based  
functionality anyway.. it does a lot but you can't jump around across  
multiple cycles which is a hassle (like, how to fast-forward to the  
end of all cycles?). So that's holding up this release.. yuck.

In other news we have new PAUSE and RESUME event types in GoEvent.  
I've also added a CYCLE event which is fired when a multi-cycle tween  
ends a cycle and starts the next one, or when  sequence with its  
repeatCount set ends then loops back.

Hopefully will get this out soon!
If you want to check it out early, email me off-list. Woohoo!
  :)

Moses


More information about the GoList mailing list