A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11249 Flash Movies | 9 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Matthias Kannengiesser
» Title: FS 3D Rotation Menu
» Description: This nice 3D Menü could be easy setup and we are quite sure you will like it - a preloader is included.
» More by Matthias Kannengiesser


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 6393 Flash Sites | 0 New Flash Links
What's New | Top 100 Flash Site

Featured Site

» Posted in the Flash Kit Links section
» Title: The Chopping Block
» Comments: The Chopping Block, Inc. is a full-service graphic design studio founded on the principle that good design spans all mediums.


Random Links | Add your own Flash Related Links
Flash Tutorials 1200 Tutorials 7 New Tutorials Added!
What's New | Top100

» After Effects Quality Effect using AS3
» FLV to 3GP: Convert video files from FLV (Flash Video) to 3GP for Mac
» create Christmas business flash presentation with hyperlinks
» Let Photos Show Your Happy Family this Christmas and Upload YouTube
» PowerPoint show to DVD slide show--- PPS to DVD
» How to burn FLV to DVD for Mac
» How to Create Christmas Flash Greeting Ecard with photos and music
» Getting Started In Flash
» How to convert FLV video to MP3 audio for Mac OS
» Unknown Tag: Title10
Random Tutorial | Add Site

bbm.netBBM.net is designed to save you time and deliver the highest quality royalty-free music for your multimedia projects. Features include: over 450 Music Loop Packages from some of the best composers in the business, our music search engine to speed your selection process, alternate music versions & bonus sounds to use for rollovers or transitions, free technical support and free consulting.

Click here for details »

Product Designer
Aquent
US-WA-Redmond

Justtechjobs.com Post A Job | Post A Resume


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Actionscripting/Basic

Categories Making A Cross Hair
Author: Ori Cohen

 
Page 1
1

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:
mouse.hide();

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.

1

» Level Basic

Added: : 2003-03-01
Rating: 6.72 Votes: 30
Hits: 2134
» Author
14 year old guy
» Download
Download the files used in this tutorial.
Download (0 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers