PDA

View Full Version : Simple Newbie Help


anthony88guy
10-24-2004, 01:14 AM
Ok, i am trying to make a simple shootem up game. I have made my crosshairs for the target. I want to make it so when i click that the inside of the cross hair red. Here is the code i have...


onClipEvent (load) {
startDrag(this, true);
}
onClipEvent (enterFrame) {
Mouse.hide();
}
on (press) {
play.crosshair;
}

So the mouse turns into the crosshair and the mouse is hitten. IN the second frame of the crosshair i made the center red. But when i test out the game, when i click it doesn't turn red.

anyhelp, thxs

mmm..pi..3.14..
10-24-2004, 04:53 AM
Well, it should actually look something like this:


onClipEvent (load) {
this.startDrag(true);
Mouse.hide();
}
on (press) {
crosshair.play()
}

I haven't seen your fla so I can't tell for sure but that should work ;)

Eric

anthony88guy
10-24-2004, 04:02 PM
ok, thxs, i will try it now, that does look better.