Shooting Flash Game Adobe Cs4?

  • Thread starter Thread starter freakynightmere
  • Start date Start date
F

freakynightmere

Guest
I have searched over the web and ive tried every tutorial i can find and all my actionscript code does not work when i want to mask a crosshair over a mouse for a shooting game.

in all fairness i think that this code is missing a link to a object but im not sure so i want to ask here.



onClipEvent(enterFrame)
{
Mouse.hide;
this._x=_root._xmouse;
this._y=_root._ymouse;
}
 
okay so, this is what chu do . open up flash cs4 , create a new file make sure the file is an ACTIONSCRIPT 2 file. draw ur crosshair on the stage then convert it to a movieclip. after converting to a movieclip, select it and click then go to your actions menu. (you are adding the code to the crosshair because its selected and you are NOT adding the code the frame because that is NOT selected :] . ) type in the actions menu , the same code you wrote , i will rewrite it for your connivence :

onClipEvent(enterFrame){
Mouse.hide;
this._x=_root._xmouse;
this._y=_root._ymouse;
}


preveiw it and ur done :DDD , if you need more help just i dunno posst a question and ill answer it .
 
Back
Top