Question by
Eddie21uk · May 26, 2017 at 09:48 AM ·
animationscripting problem2d-platformer
my char animation wont trigger when i fire my rocket
Hi fellow Dev, The problem i am having is that when i ever i fire with my mouse button the animation for the char isn't playing. When the animation does play the player would stall or just hang in the shooting motion. I have no problems with the rocket fire out just the char animation and getting more fluid motion. Any help would be appreciated, thanks in advance.
if (Input.GetAxisRaw ("Fire1") > 0)
{
myAnim.SetBool ("shooting", true);
fireRocket() ;
myAnim.SetBool ("shooting", false);
}
Comment