-
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
-
Now tell me whos watchin......
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...
-
ok, any actionscript tips on that?
-
Now tell me whos watchin......
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......
-
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!
-
Senior Member
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
-
When in doubt ask
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>
-
codes
i now its probs a bit late but can you still send me those codes please?
-
When in doubt ask
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|