mk12001 Posted August 23, 2015 Share Posted August 23, 2015 Hi guys, I'm trying to make my game in a way that if I press on space (my shoot button), I will play an animation (sprite sheet) and when it's done animating once, it stops the animation, and then after a time delay, be able to release the bullet. Right now, I'm using object.play('animation'), and my game really needs fixing (eg. the animation only plays when I hold on space instead of simply pressing space, and the bullet is released immediately. Link to comment Share on other sites More sharing options...
drhayes Posted August 24, 2015 Share Posted August 24, 2015 When you call "sprite.play" it hands you back an animation object. You can assign a function to the onComplete signal of that animation object and do something once it finishes. mk12001 1 Link to comment Share on other sites More sharing options...
Recommended Posts