Free Sniper Game .fla

Hey guys, to celebrate the new FlashChaz blog, today I’m giving away a free Sniper game .fla file. It’s in Flash 8 format, AS 2.0.

I made it from scratch but its yours – completely free – and you can do what you want with it. However, if you do make a game with it I’d love to see the outcome and would really appreciate a link to the site if you use it, so make sure to leave a comment with a link to your creation. I’ll even post it on FlashChaz.com!

It’s unique from other sniper engines because it actually acts as if you’re pointing the rifle instead of it being insant movement. It works great with a high framerate and is one of the smoothest things I’ve coded to date, so download and have a tinker!

Look out for more free .fla files in the coming weeks, I will try to add one every week, so make sure to subscribe  to the RSS feed (top right corner of the site) so you don’t miss out on any free engines :)

Update: Re-Uploaded to MediaFire as Rapidshare hit it’s free limit :)

http://www.mediafire.com/download.php?jvemjwjzygv

1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 4.25 out of 5)
Loading ... Loading ...

Would you like to buy me a beer? Thanks! It fuels my creativity and promotes good karma =D

  • Share/Bookmark

Similar Articles:

9 Responses to “Free Sniper Game .fla”

  1. neverbeforgotten on June 3rd, 2009 at 12:06 pm

    dude thanks, i got your reply on ng so thanks, i’ll add this page to my fave’s ;)

  2. I know a good one, either spam the web, or a much more unnoticed one, Media Fire.

    http://www.mediafire.com/

  3. Thanks alot, keep checking back as I’ll be adding some really cool stuff over the coming weeks! :)
    And thanks Drew, Spam The Web don’t take .zip but I’ll definately check out the MediaFire site.

  4. thanks for the fla. Maybe you should change the code a little bit:

    1. you neither need the onMouseUp nor the onEnterFrame at _root. You can do it simply by an onMouseDown
    2. don’t use Mouse.hide() in an enterframe – it is enough to hide the mouse once (clipevent on aim)
    3. if the vars acceleration and drag are the same use only one
    4. in the code you call the play-method for a non-existing gun mc
    5. put every script in a single frame (no need for object scripts any more)

    something like that will do (frame script at _root):

    //——————– vars ————————-
    var nAmmo:Number = 12;
    var nCash:Number = 100;
    var nDrag:Number = 0.05;
    //——————– functions ————————-
    function initGame() {
    this.onMouseDown = shooting;
    aim.onEnterFrame = moving;
    Mouse.hide();
    }
    function moving() {
    this._x += (_xmouse-this._x)*nDrag;
    this._y += (_ymouse-this._y)*nDrag;
    }
    function shooting() {
    aim.play();
    }
    //——————– start ————————-
    initGame();

  5. Hey asgrunt, I realise some of the code was un-nessecary, this is because it came straight from a project I was working on at the time and I forgot to remove some parts of code. However I have updated the link to a new fla which has some code clutter removed. The idea of having drag equaling accuracy was to make it an editable feature, so as the missions went on, the accuracy var could go up by X amount or a user defined number. Thanks for your comment!

  6. how do i implement people to shoot at, or make the window crack if i hit it?

  7. Just use a hitTest..so on your window animated the movieclip of the window breaking and put this code on it:

    onClipEvent(enterFrame){
    if(this.hitTest(_root.gun) && _root.gun._currentframe>1)){
    this.play();
    }
    }

    Providing your sniper scope clip is called ‘gun’ you should have no problem!

  8. hi, can you make sniper games with multiple missions? i need to know how.

  9. i cant open the .fla files…

Leave a Reply