0

I am trying to create a html5 game for touch devices with easeljs. One of the effects I'm trying to accomplish is when the player swipes up on the screen, a flower grows up dynamically (randomly) for a butterfly to rest on.

Is it possible to do that with easeljs? Thanks.

Examples:

http://onecm.com/projects/canopy/

http://www.openrise.com/lab/FlowerPower/

user14412
  • 987
  • 1
  • 11
  • 32
  • Have you looked into animating object scaling? In [Fabric.js](http://fabricjs.com), for example, you would just call `yourObject.animate({ scaleX: 2, scaleY: 2 }, { duration: 500, onChange: canvas.renderAll.bind(canvas) });` to animate object size. – kangax Nov 28 '12 at 16:05
  • Thanks for your advice. I was originally thinking about making the growing of the flower seem organic, but that seems to be too complicated. Using sprite might also work, but I also worry about the file size. So, now I think your suggestion is the best solution (better finish the project before the deadline). – user14412 Nov 29 '12 at 20:48

0 Answers0