My Ship Movieclip

Subscribe to My Ship Movieclip 8 posts

Sign in to reply


 
avatar for Sparkplug90 Sparkplug90 29 posts
Flag Post

hey so i got my ship and everything is fine but i want to animate it
if you press space bare it goes to frame 2 but i cant get this to work
if its on frame 2 then i want it to go to frame 3

here is my code

if( Key.isDown(Key.SPACE) && shootLimiter > 8)
{
shootLimiter = 0;
var missile = root.attachMovie(“Missile”,“Missile” + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile.
x = x + 35;
missile.
y = _y + 2;
missile.gotoAndPlay (2)
this.gotoAndPlay (2)
if (this = (2))
{
gotoAndPlay (3)
}

i dont know what is wrong

 
avatar for Sparkplug90 Sparkplug90 29 posts
Flag Post

nvm i figured it out

 
avatar for Kuzmin Kuzmin 17 posts
Flag Post

Please share your solution with us(me), i cant figure it out with referencing to the own movieclip, and the contents.

 
avatar for Sparkplug90 Sparkplug90 29 posts
Flag Post

now my ship fires its missles and then reloads
:)
here is a link to the swif
im working on new background graphics
here is the game try it is only off of the current tutorials
http://www.flashgamelicense.com/view_game.php?game_id=3107

 
avatar for Sparkplug90 Sparkplug90 29 posts
Flag Post

kuz her is waht i did
i have my ship with a missle on each wing
[IMG]http://i177.photobucket.com/albums/w227/Doomed_blondie1/untitled.jpg[/IMG]
then i made the next frame have only one missle
[IMG]http://i177.photobucket.com/albums/w227/Doomed_blondie1/untitled1.jpg[/IMG]
here is the full view of my doc and my code
[IMG]http://i177.photobucket.com/albums/w227/Doomed_blondie1/screen.jpg[/IMG]
[IMG]http://i177.photobucket.com/albums/w227/Doomed_blondie1/screen2.jpg[/IMG]
and it works like you see here
http://www.flashgamelicense.com/view_game.php?game_id=3107

 
avatar for Kuzmin Kuzmin 17 posts
Flag Post

I mean, the code, i can’t make my classes get movieClips inside of them.

 
avatar for Sparkplug90 Sparkplug90 29 posts
Flag Post

its this link look at what it says

http://i177.photobucket.com/albums/w227/Doomed_blondie1/screen2.jpg
it gets movieclips

 
avatar for Kuzmin Kuzmin 17 posts
Flag Post

Sorry, not what i was looking for, I needed to access a MovieClip under the MovieClip being defined by my class.. like;

class Mudkip extends MovieClip {
function onEnterFrame() {
this.NestedMovieClip._width++;
}
}

Or something like that.. So I won’t need to use root.Mudkipmc.NestedMovieClip._width++; (surely works, not as effective though)

Sign in to reply