Question
First Person Shooter problems
Ok, I have made a FPS and have followed a tutorial on how to
attach objects to the stage where the mouse resides (my
bulletholes) the only problem is, I need my bulletholes to show up
UNDER the crosshair. I have tried adding code that tells the cursor
to get next highest depth after the bullethole is added. but this
does not work. code is below. anyone have any ideas?
Mouse.hide ();
startDrag (cursor_mc, true);
var i:Number=0
this.createEmptyMovieClip("canvas_mc", 50);
var myListener:Object = new Object();
Mouse.addListener(myListener);
myListener.onMouseDown = function(){
var t:MovieClip = canvas_mc.attachMovie("bhole","bhole"+i,canvas_mc.getDepth(0));
t._x=_xmouse;
t._y=_ymouse;
i++;
//cursor_mc.getNextHighestDepth();
}
Mouse.hide ();
startDrag (cursor_mc, true);
var i:Number=0
this.createEmptyMovieClip("canvas_mc", 50);
var myListener:Object = new Object();
Mouse.addListener(myListener);
myListener.onMouseDown = function(){
var t:MovieClip = canvas_mc.attachMovie("bhole","bhole"+i,canvas_mc.getDepth(0));
t._x=_xmouse;
t._y=_ymouse;
i++;
//cursor_mc.getNextHighestDepth();
}
