Jacowaco Posted July 21, 2015 Share Posted July 21, 2015 Hi, is it possible to rotate flash sprites in the 3D sprites?Like this example from Starling (AS3): http://wiki.starling-framework.org/manual/sprite3dIf it isn't possible, do you think i could simulate something similar with scale or another proparty of the sprites?I made a Matching game for a client in Phaser and he is asking for the tokens to do the flip animation when you click on them. Link to comment Share on other sites More sharing options...
gianthead Posted July 22, 2015 Share Posted July 22, 2015 You can simulate flipping in 1 dimension by tweening just the x or the y axis of your sprite's scale property like this:game.add.tween(sprite.scale).to( { x: -1, y: 1 }, 2000, Phaser.Easing.Linear.None, true, 0, 1000, true); Link to comment Share on other sites More sharing options...
Jacowaco Posted July 23, 2015 Author Share Posted July 23, 2015 That is a good start, thanks!Can i deform the sprite to make it look trapezoid during the animation to simulate better the 3D? Link to comment Share on other sites More sharing options...
Igor Georgiev Posted November 15, 2016 Share Posted November 15, 2016 I am also interested in that... Link to comment Share on other sites More sharing options...
Recommended Posts