Ok, I STILL can't solve problem. I tried using localToGlobal, but it just won't work. The Handgun is contained inside the Arm, which is what I rotate while aiming. Trouble is, the _x value of Handgun DOESN'T change when I rotate the Arm, so the _x and _y values remain the same. :(
Am I really screwed all over
Link: http://denvish.net/ulf/100607/45432_Horror_Sh oot.php
Code for bullet:
onClipEvent (load) {
something = new Object();
something.x = _root.mcPlayer.mcPlayer_HandgunAim.mcHandgunA im_Arm.mcHandgun._x;
something.y = _root.mcPlayer.mcPlayer_HandgunAim.mcHandgunA im_Arm.mcHandgun._y;
something._rotation = _root.mcPlayer.mcPlayer_HandgunAim.mcHandgunA im_Arm.mcHandgun._rotation;
localToGlobal(something);
if (_name == "mcPistol_Bullet") {
_visible = false;
}
spd = 20;
this._x = something._x;;
this._y = something._y;
this._rotation = something._rotation + 50;
}
controls:
Hold J to Aim, K to Shoot.