Hi guys! Can I animate a sprite in Phaser with GSAP? I want to animate the sprite in the timeline because I want to be able to reverse it with everything else...
In Phaser I animate the sprite as follows:
var player = this.game.add.sprite(X, Y, 'player');
player.animations.add('walk', [0, 1, 2, 3, 4 ], 15, false); //the animation end in the frame 4
player.animations.play('walk');
And I am using GSAP to tweening objects...
var tl = new TimelineLite();
tl.to(this.state1, 3, { x: -1000 });
I want to replace the sprite animation with Phaser to do this with GSAP, and to reverse this in the timeline animation with
tl.reverse();
Thanks in advance
PD: See please http://www.html5gamedevs.com/topic/8141-tween-atlas-frame-on-ipad/
Regards, Nicholls