A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Helicopter game help

  1. #1
    Junior Member
    Join Date
    May 2007
    Posts
    11

    Helicopter game help

    Hi, I'm sure you have all played the helicopter game.
    http://www.seethru.co.uk/zine/south_coast/week13/02.htm

    I have to make a flash game for my IT class,
    i was wondering if you guys had any tips (ANYTHING)
    on how to make a game like this.

    what action script do i use to generate the random blocks appearing?
    How do i make the walls close in?
    how do i get the mouse to cause the heli to rise and fall on release and press?
    How do i get the game to end when the heli hits the ceiling or blocks?

    ANY feedback at all would be a big help or posting other threads or tutorials that could help...

    Thanks So much,

    helihelp

  2. #2
    Now tell me whos watchin...... samvillian's Avatar
    Join Date
    Feb 2007
    Location
    Where do you live?
    Posts
    539
    i couldnt tell you exactly what you need, but im no pro, but you should also concentrate on how to make the blocks random Y coordinates and how to make the random maps...

  3. #3
    Junior Member
    Join Date
    May 2007
    Posts
    11
    ok, any actionscript tips on that?

  4. #4
    Now tell me whos watchin...... samvillian's Avatar
    Join Date
    Feb 2007
    Location
    Where do you live?
    Posts
    539
    go to the as dictionary(adobe has it for free) also its embedded in the flash program, and look up hitTest, which is what you need to check if the heli touches either the terrain or the obstacles. you would use a if then statement to do that. what is your skill level?

    to make the random y stuff you gotta do somin in the area of this:

    obstacle._y = Math.random(mH) // the mH is the documents Height like 400 or somin. obstacle refers to the name of the clip......

  5. #5
    Junior Member
    Join Date
    Nov 2007
    Posts
    2

    code for mouse movement

    ok this might help...

    ok what you need to do is make your thing that you are going to move (a.k.a. a helicopter) into a movieclip then give it an instance name of player_mc

    when you have done all of that open up your actions panel for the frame that the helicopter is on and put this code on the main timeline

    var yVelocity:Number = 0;
    var gravity:Number = 2;
    var mDown: Boolean;

    onMouseDown = function(){
    mDown = true;
    }
    onMouseUp = function(){
    mDown = false;
    }
    onEnterFrame=function(){
    player_mc._y += yVelocity;
    if(mDown){
    yVelocity -=gravity;
    } else {
    yVelocity +=gravity;
    }
    }

    now test your movie and you should have a moving helicopter like on the helicopter game,
    hope this helped sorry i dont know how to do the rest im trying to make a game like the helicopter game myself so im still learning like you!, when i figure it out ill tell you but until then, good luck!

    p.s. if you end up using this after i told you please put 'Pioallergenic' in your credits!

  6. #6
    Senior Member flashisland's Avatar
    Join Date
    Aug 2003
    Posts
    241
    Quote Originally Posted by pioallergenic
    p.s. if you end up using this after i told you please put 'Pioallergenic' in your credits!
    I really hope you're kidding. You only gave a couple lines of code after all.

    Anyway, I dug up an old thread on the subject at http://board.flashkit.com/board/showthread.php?t=440991. If you need any more help, just PM me and I can send you over a sample file for you to take a look at.

    Edit: It looks like a lot of those links in that thread don't work anymore. If you PM me your email address, I can email you the old files that were posted.

    Edit again: Whoops, looks Pioallergenic dug up a thread a few months old. It probably won't do any good for anyone else to reply as this project is most likely already finished.
    Last edited by flashisland; 11-24-2007 at 05:39 PM. Reason: Old links don't work

  7. #7
    When in doubt ask Eager Beaver's Avatar
    Join Date
    Feb 2007
    Location
    Planet Earth
    Posts
    911
    Please see the game developed by me.
    If you want I can send you the Code for this game.
    Please send PM.
    Helicopter Game
    <signature removed by admin>

  8. #8
    Junior Member
    Join Date
    Feb 2012
    Posts
    1

    Smile codes

    i now its probs a bit late but can you still send me those codes please?

  9. #9
    When in doubt ask Eager Beaver's Avatar
    Join Date
    Feb 2007
    Location
    Planet Earth
    Posts
    911
    Thanks for contacting me after more than four years on this thread.
    I am not able to enclose the code here. If you are interested please
    Send an E-Mail to support@gamesmostwanted.com who shall forward the source code/FLA. for this game.
    <signature removed by admin>

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