• Top Members
    Reps
    Posts
  • 834 Replies
    2585 Replies
  • 716 Replies
    2026 Replies
  • 331 Replies
    1928 Replies

Plz help; AS2

User avatar
backo
Just Registered
Posts: 6

Plz help; AS2

Tue Dec 07, 2010 3:08 am

Can anyone please be nice and tell me how to fix my problem, i'll try to explain it for you...


so lets see, its a space invaders-ish game, its a tanklooking thingie that can go forth and back, and i have all the animatopn for it, but i am struggeling with making a movie inctance of the bullet at the X position of the tank, without making the bullets path bend when i move my tank afterwards. if anyone know how to help me, it would be very nice, thanks.

User avatar
Cheatmasterbw
Coding God
Posts: 1506

Re: Plz help; AS2

Tue Dec 07, 2010 3:14 am

What do you mean by "movie inctance"?

User avatar
backo
Just Registered
Posts: 6

Re: Plz help; AS2

Tue Dec 07, 2010 3:21 am

AS2 is what the scripting form is whithin Flash 8, withing the newer versions of flash there are AS3 (action scipt 3)

so if you dont know too much about flash ill try to explain to you what a movie clip instance is ^^

well, first of all you have a movie clip, wich basicly is a animation within the animation. this movieclip can be controlled by a script.

one single copy of this movieclip is a "movie clip instance"! :D

hope that helps xD ^^ :D

User avatar
Cheatmasterbw
Coding God
Posts: 1506

Re: Plz help; AS2

Tue Dec 07, 2010 3:24 am

I'm not too familiar with AS2. :/
Did you try googling it?

User avatar
backo
Just Registered
Posts: 6

Re: Plz help; AS2

Tue Dec 07, 2010 3:26 am

yep, i have tried, i cant find any kind of tutorials or anything :/

i have accually tried to fighure this very thing out for 2 months now xD

well well, i guess i can almost give up on this then xD

unless someone else wants to help me then ^^

User avatar
bisnes_niko
Serious Programmer
Posts: 409

Re: Plz help; AS2

Tue Dec 07, 2010 11:30 am

You are making it wrong. You must make the animation inside the tank and the main time-line must be like 4 frames for Main Menu, Game itself, End and/or About

I would go learning AS3.0 instead of AS2.0, well, incase you don't have Adobe Flash CS3, then forget the AS3.0

If I understood wrong, you are making it that you have the animation in your main time-line and not inside the movieclip

I don't remember much AS2.0 anymore, but I can give you some tips...

Remember to add "Stop();" on the time-line code (Where the AS3.0 goes)... This will stop your game to play the 4 frames all the time.

If (Key.isDown(Keys.Left) {
Rocket.GotoAndPlay(2); // Movieclip called Rocket
}

This will remove the Stop(); code piece from your rocket movieclip. Well, not actually remove it, but It will make the animation continue

I am writing this from school, so I couldn't make up with anymore... If you are reading this and I am not still at home, hold on :P, cuz I am about to edit this ASAP.

Post Reply

Return to “Programming Software”