holmberd Posted September 12, 2015 Share Posted September 12, 2015 Hi forum, I'm looking for ideas how to play an animation in the bullet lifespan, i.e. how to shoot an animated bullet. I've been looking around quite abit so any help would be most appriciated. Thanks. Link to comment Share on other sites More sharing options...
drhayes Posted September 13, 2015 Share Posted September 13, 2015 I'm not sure what you're asking. Do you know how to play an animation? Do you want the animation to loop as long as the bullet is firing? Or do you want the animation to only last as long as the bullet flies through the air? Link to comment Share on other sites More sharing options...
MichaelD Posted September 13, 2015 Share Posted September 13, 2015 Usually not much animation is added to the bullets as they fly, only when they launch from the weapon (smoke, some file, or some small burst) and when they collide with something. Link to comment Share on other sites More sharing options...
holmberd Posted September 14, 2015 Author Share Posted September 14, 2015 I see I should have been more specific, but no worries I got it resolved using the code below. Thanks.bullets.callAll('animations.add', 'animations', 'fire', [0,1,2,3,4,5,6], 5, true);bullets.callAll('play', null, 'fire'); Link to comment Share on other sites More sharing options...
Recommended Posts