|
-
Fireworks was finally working, so I was able to create a separate gun turet. Now, how would I go about having the gun turet doing the rotating, and not the enemy ship?
If you need my new .fla, just tell me, I'll give you the URL when I can.
Also, I've been asking around, would you know how to make a simple mc, such as a circle, move about and be able to jump on a platform; then jump/roll off?
I already know how to make it move on keyDown, but the jumping on a platform...not really. I saw an example .fla of this, and I wanted to learn from it, but it was no longer downloadable.
So, could you make an example like this, or teach me how? I just want to know because after my Space shooter game, I might want to make an RPG game or a platform game. Need it to learn from.
[Edited by nonameshere on 01-02-2001 at 12:34 AM]
-
A few things:
1.) give the enemy ship the instance name "enemy"
2.) make the turret an entirely different mc and make sure its centered
3.) give the turret the instance name "turret"
4.) put these actions in the clip:
Code:
onClipEvent (enterFrame) {
this._x = _root.enemy._x;
this._y = _root.enemy._y;
this._rotation = _root.enemy.angle * (180/Math.PI);
}
Thats the best I can do for now...try it.
Good luck.
-
Ok, but I remove the actions for making the enemy ship's rotation, right? I'm sure I do, just making sure though.
Thanks.
What about the other question I asked? Seems nobody else is answering it...
Oh, and where do I put the turet mc? I mean, if it's in the enemy mc, then I can't add a onClipEvent to it. But, if I put it on the stage, scene 1, then it won't follow the enemy ship (turet won't).
-
Should I just give you the .fla. I got the turet rotating, but it spins wildly when it gets ready to shoot. Plus, the enemy ship still rotates.
Ok, heres another possible problem. Shouldn't I use two lasers (one for the hero and one for the enemy)? I mean, when I use hit test, if I only have one laser, that laser, will in effect, cause a hit when it is shot from the enemy's ship.
I tryed this, and it does cause the enemy ship to go to game over when it shoots it's laser. Unless this is some kind of bug.
Well, be around tomorrow.
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
|