Hello There, Im in urgent help with getting a bullet to spawn where the gun is…
The gun is inside the char…
(ill skip all my other code…i just want to explain my problem)
function onEnterFrame(){
if(Key.isDown(Key.SPACE)){
a = attachMovie("bullet", "bullet" + fired, _root.getNextHighestDepth());
a._x = _root.char.gun._x;
a._y = _root.char.gun._y
fired += 1;
}
But in this code… the bullet doesnt get attached to the guns location… but if i set it to attach to the char… it will work. I need to know how to get this to work asap. Thank yo uso much.