Hey, I am trying to have a movie clip shoot where the mouse position is when they click a button, heres my script, I havent done any action script in a long time so I can't really see whats wrong.
code:
on (release) {
shootx = _xmouse;
shooty = _ymouse;
CowboyMC.play();
duplicateMovieClip(bullet,bullet01,1);
bullet01._x = CowboyMC._x;
bullet01._y = CowboyMC._y;
do {
bullet01._x = bullet01._x - 5;
bullet01._y = bullet01._y + shooty * 0.2;
} while(bullet01._x < shootx && bullet01._y < shooty)
}