A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Arcade Game

  1. #1
    Relaxing tmoore935's Avatar
    Join Date
    Oct 2001
    Location
    colorado, usa
    Posts
    1,713

    Arcade Game

    I did an arcade spacegame and I have put a link to the game below. It is simple and has only one ship. I followed a tutorial from flashkit>>games>>creating games in flash 5 by David Doull. I learned to nav the ship from this forum. Also the moderator Johnie told me to use the math.random function since random is not supported in koolmoves. Necro supplied info on key movement with sound. Mabey someone else can improve on this funfile.

    The Game
    http://home.att.net/~diversioncentra..._invasion.html

    the funfile
    the sound files are at http://home.att.net/~diversioncentral/kool_invasion.fun
    http://home.att.net/~diversioncentral/cannon.wav
    http://home.att.net/~diversioncentral/lasergunecho.wav
    http://home.att.net/~diversioncentral/boom.wav

    (I can not seem to upload a zip file )
    Last edited by tmoore935; 11-15-2002 at 08:48 PM.
    Any programming language is at its best before it is implemented and used.

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    onClipEvent (load) {

    function reset(){
    this._x=600;
    this._y=random(200)+100;
    enemySpeed=random(4)+1;
    }
    reset();
    }




    Random() is actually a deprctiated Flash 4 AS. Almost all of the Flash 4 depreciated syntax has to be removed as it is not supported. To be honest they shouldn't have used it in this tut.

    anyhow Math.Random usage tut is here http://www.actionscript.org/tutorial...ns/index.shtml


    onClipEvent (load) {

    function reset(){
    this._x=600;
    this._y=Math.round(Math.random()*(300-200))+200;
    enemySpeed=Math.round(Math.random()*(5-4))+4;
    }
    reset();
    }
    Last edited by johnie; 11-14-2002 at 10:00 PM.

  3. #3
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890
    Well done TMOORE !

  4. #4
    Senior Member
    Join Date
    Jun 2001
    Posts
    289
    Nailed a few zeti reticulli!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center