Jump to content
Search Community

cr4y

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by cr4y

  1. I'm writing a game. A main character, "board.player" should be visible always in center of the screen. To make life easier I have done something like: addEventListener(Event.ENTER_FRAME,erf); function erf(ev:Event){ board.x= -board.player.x } TweenMax.to(board.player, 2, {x:"+100"}); Now I can move player, and he is still in center of the screen. The problem is that "player" is shaking (his tween is no fluent). It seems like "erf" is running before TweenMax. How could I change it? (I was trying to change a priority of ENTER_FRAME listener, but it didn't help). Thanks in advance
  2. Is there a way to choose something like "start speed" for easing? I'm pretty sure, that there was a way to create a custom easing, but I couldn't find any info about that. I need to make object moving from point to point starting with one speed and finishing with another. The acceleration may be constant. thanks in advance KK
  3. I have to confirm the problem. It seems to be caused by relatively small numerical errors. I can provide an example code (game, Rubik's Cube, unfortunatelly with polish comments only). TweenMax is used to rotate PaperVision objects, I'm using only tweens like if (!rotating) TweenMax.to(wall, 0.8, { shortRotation: { rotationZ:"+90" }, onComplete:setRotatingFalse, immediateRender:true } ); If I'll write in onComplete code that runs another rotation (to make infinite loop), then after some rotations (slower computer, fewer rotations) rotationZ will be something like "89.97". [Accually it could be a Papervision Bug too... It should be easy to check, I'll do that]
×
×
  • Create New...