A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: 'perspektive' tween does slow down...

  1. #1
    Senior Member
    Join Date
    Aug 2007
    Posts
    121

    'perspektive' tween does slow down...

    i am trying to do a racegame-like flyby of houses along the street.
    but i cant controll the speed of the tweening. it gets slower when the object 'comes nearer'.

    i published 2 demos to make the problem clear.

    problem-demo:
    http://aliennecropsy.com/test/0012.html
    http://aliennecropsy.com/test/0013.html = the blue boxes are the same speed/exactly the same animation-frames, the scond one starts some frames later but overtakes the first one...

    WHY is that??? it makes no difference if i change the tweening-options (-60 or whatever...)

  2. #2
    Senior Member Ovaire d'Oz's Avatar
    Join Date
    May 2006
    Location
    France
    Posts
    148
    I suppose your are using Regular.easeOut with your Tween. For such 3D effect, you should try easeIn, then the blue boxes will be closer at the biginning but will get more space between them in the end. An other thing, you should probably set the end point way more out of the scene.

  3. #3
    Senior Member
    Join Date
    Aug 2007
    Posts
    121
    makes no difference!

    i already tried easein and ease out.

    the delay of the second box is still there!! placing it farther outside of the screen makes it just slower...

  4. #4
    Senior Member Ovaire d'Oz's Avatar
    Join Date
    May 2006
    Location
    France
    Posts
    148
    My idea was that if you place it further outside of the screen, provided that you change the Tween duration, maybe the closing will not show up on the screen, but only happen outside of it.

  5. #5
    Senior Member
    Join Date
    Aug 2007
    Posts
    121
    yes, but after a while or 20 elements in a row, there will be some errors and the whole thing will slow down...

    is there any way to script that scrolling??

  6. #6
    Senior Member Ovaire d'Oz's Avatar
    Join Date
    May 2006
    Location
    France
    Posts
    148
    Sorry, I do not see any other solution, unless you are ready to forget the Regular tweening and using None.easeOut instead which might work better.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center