This easy to follow, HD tutorial, will show you step-by-step how to make a Sniper-Scope shooting game with Flash CS4.
** Download the flash file I created in this video! **
http://www.mediafire.com/?kmz4mmvzmlg
---- Frequent Problems / FAQ ----
1. The script doesn't work, I get error messages talking about 'missing information'.
You're using Actionscript 3.0. The scripts in this tutorial use the syntax of Actionscript 2.0. Head into File, Publish settings, and under the 'Flash' tab, change the 'Script' drop down to 'Actionsript 2.0'.
2. When I click on my button and open the Actions panel it says 'Actions cannot be applied'.
Either: Make sure you converted your object into a button symbol (hit F8), OR, change your Actionscript to AS2. (Refer to question 1.)
3. My frames are disappearing, or the movie is flickering.
Be sure to have applied the stop(); script for each frame.
4. The scope won't follow my mouse.
Make sure your scope has been given an instance name in the properties menu. In this case it is 'scope' (Without the ' ' ). Also double check you correctly copied the script at 5:37.
5. The scope drags from the corner, not the centre.
When converting the scope into a MovieClip, in the box that opens up, set the Registration (the little diagram with 9 white squares) to the centre, by cliking the middle square. If you forget to do this and have already converted the movieclip (like myself in the video), follow what I'm doing at 2:36. (Double click the MC to edit it, use the Align menu (Ctrl+K) to align the scope in the centre of the stage. Make sure the little 'cross' lines up with the middle of the scope's crosshair.)
6. How do I unhide the mouse?
Use mouse.Show(); on the frame you wish to show the cursor at.
---------------------------------------------
Video made with:
- Adobe Flash CS4
- Techsmith Camtasia Studio 6.0
If you'd like to see more Flash tutorials, please subscribe to my channel!
Peace.
---------------------------------------------
I'm running into a slight problem with mine, After the introduction scene, the crosshairs align themselves with my mouse's position, and then stops. it only follows for the first frame, and then the targeting reticule just stays there....
This is my first flash project....
cykrns 9 months ago 9
@XDestroyer0001 - second line will give error.... No Semicolon(;) .....
Mimz084 9 months ago 2