-
20x6
Plane Flying
I'm thinking about making an airplane game, similar to starfox for snes (one of my favorite games). I just started it about 2 minutes ago so there isnt much, I just wanted to ask you if the nose of the plane looks ok or if i should use a different way. Currently i am just changing the _yscale of the nose.
Anyways:
http://www.arblanza.invisionworld.com/john/plane.html
-
I think it looks ok, except you shouldn't have the nose point down so much when you dive, it looks a bit strange.
Edit: Yeah I agree with tounge's post on the back of the plane thing.
[Edited by Da-Spit on 09-22-2002 at 07:39 AM]
-
Senior Member
looks good, but you should let the the back of the plane (the part with the red and yellow) tilt more cuz it looks like the nose is a seperate part since the back tilts less that the nose. mabey you should use swift 3d for this...
Good luck
-
20x6
I'm going to make it so the nose doesnt go down as much and so that the red/yellow thing moves up or down. I would you swift 3d for it but i dont have any money to buy it. Have to do my best with what I have....
-
BullDog
Very cool dude ziplockkitty
I love it just make some background to it and then make the nose not gom up so much other than that its pretty good
-
Senior Member
ill do one for you if you want
still learning swift tho
get me when u c me on msn
-
not so bad!
but you should make it a little more realisticly by: when the nose point down/up you should se the jet beam.
you gotta be god in flash to write that actionscript by your self!
-
20x6
Actually, the code was pretty easy, you could probably make it too. I took the easy way out, changing the yscale of the nose to make it look like its moving.
I made this code for the nose:
Code:
onClipEvent (load) {
// to start the plane starting forward;
_yscale = 1;
}
onClipEvent (enterFrame) {
// to gradually made the nose angle go back to normal;
_yscale += -(_yscale/15);
if (Key.isDown(Key.DOWN) and _yscale<80) {
// press down - nose goes up;
_yscale += 5;
}
if (Key.isDown(Key.UP) and _yscale>-70) {
// press up - nose goes down;
_yscale -= 5;
}
if (_yscale >= 0) {
// first frame has the window;
gotoAndStop(1);
}
if (_yscale <= 0) {
// 2nd frame has no window;
gotoAndStop(2);
}
}
Then put the nose inside another mc. On that mc I put:
Code:
onClipEvent (load) {
// rotation variable keeps track of how much left to turn;
rotation = 0;
}
onClipEvent (enterFrame) {
// next 3 if commands are for barrel roll;
if (rotation == 0) {
_rotation += -(_rotation/20);
}
if (rotation>0) {
_rotation += 20;
rotation -= 20;
}
if (rotation<0) {
_rotation -= 20;
rotation += 20;
}
if (Key.isDown(Key.DOWN) and _y>50) {
// this moves the whole plane up;
_y -= 5;
}
if (Key.isDown(Key.UP) and _y<325) {
// this moves the whole plane down;
_y += 5;
}
if (Key.isDown(Key.LEFT)) {
if ((_rotation>-75 or _rotation == 0)) {
// makes the plane slightly turn;
_rotation -= 5;
}
if (_x>50) {
// moves whole plane left;
_x -= 5;
}
}
if (Key.isDown(Key.RIGHT)) {
if ((_rotation<75 or _rotation == 0)) {
// makes the plane slightly turn;
_rotation += 5;
}
if (_x<500) {
// moves the whole plane right;
_x += 5;
}
}
if (Key.isDown(Key.RIGHT) and Key.isDown(Key.SHIFT) and rotation == 0) {
// starts barrel roll;
rotation = 360;
}
if (Key.isDown(Key.LEFT) and Key.isDown(Key.SHIFT) and rotation == 0) {
// starts other barrel roll;
rotation = -360;
}
}
I just added those comments incase you ever want to know what each part is for. Ok, i better stop rambling on... I have homework to do. Thanks for the compliment.
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
|