Jump to content
Search Community

Coin Bounce

PixelPie test
Moderator Tag

Recommended Posts

here is a quick attempt:

 

import com.greensock.*;

import com.greensock.easing.*;

 

 

var tl:TimelineMax = new TimelineMax({repeat:10, repeatDelay:1})

 

tl.insertMultiple([

TweenMax.from(star, .3, {scaleX:.5, scaleY:.5}),

TweenMax.to(star, .5, {x:"50", ease:Circ.easeOut}),

TweenMax.to(star, .5, {y:"20", ease:Back.easeIn}),

 

 

TweenMax.to(star, .1, {scaleY:.7, scaleX:1.1, repeat:1, yoyo:true, delay:.5})

])

 

tweak some of the timing and scaling to suit your purposes.

 

the Back.easeIn on the y makes the star jump up a bit.

a bezierThrough might work better here.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...