PixelPie Posted June 3, 2011 Share Posted June 3, 2011 Could anyone give me a sequence of tweens that recreates the coin bounce in CityVille? http://apps.facebook.com/cityville/ It goes up, then down, then scales on the y up and down. It's really nice and bouncy and I can't seem to get it right. Link to comment Share on other sites More sharing options...
Carl Posted June 4, 2011 Share Posted June 4, 2011 if you could post a link to a video, that would be great. I get freaked out when facebook apps ask for access to my information. Link to comment Share on other sites More sharing options...
PixelPie Posted June 5, 2011 Author Share Posted June 5, 2011 Sure thing ;o At about 30 seconds in you'll see the xp star bounce which is the same thing. Link to comment Share on other sites More sharing options...
Carl Posted June 5, 2011 Share Posted June 5, 2011 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 More sharing options...
PixelPie Posted June 7, 2011 Author Share Posted June 7, 2011 Cool! I will play around with this ;o Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now