I'm not sure if you'd need to see the code for this particular problem, but I am currently working on understanding using .as files to create a game.
Okay, so I have a "playerMC" that is loaded with the addChild function from the document class and I have a "bulletMC" that is loaded with addChild from the Player class with the playerMC as the parent. The bullets are fired when the mouse is clicked and are fired at whichever direction the mouse is (a radius).
The playerMC moves when the left and right keys are pressed and the playerMC.scaleX changes depending on whichever left or right key is pressed(so that it will face a certain direction).
The issue I'm having is that when the player is facing right, the bullets fire correctly (with them firing toward the mouse). Now, when the player is facing left, the bullets fire opposite of the mouse on the X axis.
I have almost fixed the issue with an if/else statement using the players scale values, but the issue leaks out a bit and a bullet fires in the wrong direction for a split second before adjusting the trajectory, so this is not the way to go. I want it to be perfect.
So the bullet child is adopting the scale property of the parent player. Any ideas as to how to prevent this? (if you need to see code, I will post it)