bluedot Posted July 17, 2014 Share Posted July 17, 2014 Hi, Does Phaser have this feature ? I can see how it does movement but how about inbetween frames ? e.g. I've got an animation that has 6 frames but I want to make it smoother. Also, how do I insert new frames from png files into a sprite that's already been created ? I can't work it out from the docs and there doesn't seem to be an example. Thanks. Link to comment Share on other sites More sharing options...
lewster32 Posted July 17, 2014 Share Posted July 17, 2014 Does Phaser have this feature ? I can see how it does movement but how about inbetween frames ? e.g. I've got an animation that has 6 frames but I want to make it smoother. No, Phaser does not support this Flash-style shape tweening, primarily because it deals with pixels rather than vectors. Also, how do I insert new frames from png files into a sprite that's already been created ? I can't work it out from the docs and there doesn't seem to be an example. Not sure what you mean here exactly - if you want to add to an animation, I believe you just re-declare the animation with the new frames. I don't believe however you can add frames from more than one sprite sheet/atlas into a single animation at this time. Link to comment Share on other sites More sharing options...
bluedot Posted July 17, 2014 Author Share Posted July 17, 2014 Not sure what you mean here exactly - if you want to add to an animation, I believe you just re-declare the animation with the new frames. I don't believe however you can add frames from more than one sprite sheet/atlas into a single animation at this time. How about creating animation from multiple png files ? Is that possible ? Link to comment Share on other sites More sharing options...
lewster32 Posted July 17, 2014 Share Posted July 17, 2014 Not currently, animations are handled internally by just moving a single image around behind a 'frame' which acts a little bit like a window onto the texture. Adding more than one source image is impossible in this situation, and you'd have to instead rely on rather complex animation complete events etc. Link to comment Share on other sites More sharing options...
Recommended Posts