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: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
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: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.