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