First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search tutorials
Author: Ori Cohen

Making A Cross Heir

Well I know that there’s a lot of people that want to make a first person shooter using flash, and that’s probably a good way to start, I think that first person shooters are probably the simplest in game genres. One of the problems that new people encounter is the making of a cross heir, this tutorial is intended to help you understand how to make one.

First thing you’ll need is to create a new movie clip. This will serve as our cross heir. Make it something simple at first, just so you get the hang of it.

Note: The cross on flash will decide where the point of the mouse is. So if you want the exact middle of your cross heir to be the shooting part you have to make sure it’s in the middle of that cross.

After you’re done go back to the main stage (the actual scene) and create a new layer. You probably want this layer to be at the top of everything. This is because otherwise the cross heir will go underneath your targets. Name the layer cross heir, then open up your library (Ctrl+L) and drag it over. Click on the cross heir and open up the properties of it. Where it says Instance name change it to something you can easily remember like cross. We do this so that we can refer to it in the code.

Now create a new layer and call it Actions. In the first frame of Actions open up the actions and choose expert mode. Type in:

What we did is tell the computer to hide the mouse. Now we want the cross heir to follow the mouse, to do this type in:

startDrag(“cross”, true);

What that did is start a drag on the cross heir.If you test the movie everything should be working

Final Note: change the frames per seconds to 20, this will make the cross heir follow the mouse smoothly.

» Level Basic

Added: 2003-03-01
Rating: 7 Votes: 31
(10 being the highest)
» Author
14 year old guy
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: work2survive
» Title: Girl Walking 1kb
» Description: Walking girl, animation just takes 1kb, using high heels shoes, and fashion model attitude.
Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.