So I am making a 2d side scrolling platformer and I want to give the player the ability to fire bullets. I am using the “Fire Bullets” extension. The move works fine for the most part but every time I press the button for the bullet move, the animation for the player runs but gets stuck at the last frame and pressing the “o” button doesn’t change the player animation only fire bullets until I move around then it goes back to the idle animation, then i can just repeat the process. I want the character to go back to his normal animation after i hit the “o” button and not just get stuck in the last frame of his bullet animation( P.S: i created an event to check if the “o” button is pressed then the player would change his animation to the appropriate bullet animation and then the bullet is fired)
also, when the player changes direction say from facing right to left, the bullet still fires to the right. Please I need help fixing the issue.
I think the idle animation is cancelling out the shoot animation. In the event that sets the player to idle add a condition to check if the animation is not equals to the shoot animation.
You also need to add a new even to change the animation back to the idle when the shoot is finished.
You can make use of the current animation and animation finished conditions.
You need to check the direction of the player and change the shoot angle accordingly.
Finally for the bullet size, you can ake use of the size action to set the desired height and width.