**Development Update** I have lots of work to do, and exams are coming up. Once summer break comes around in the end of June, I will continue working on Button Upgrade 2. No confirmed release date. There are awesome things coming, though.
No offense, but why do so many people upload shootorials? At least you got different graphics, I guess, but try to add different content to it before you upload.
For the white paintbrush level, YOU DON'T HAVE TO CHEAT, the button is just white and hidden. Move around your mouse until it turns into the hand and then click there. It is roughly in the lower-right region. + this so other people will know.
Ok my ship is killing the enemy ships, but now my missiles will only kill some of the ships... Roughly 1 in every 6 enemy ships will be hit by my bullet. The rest wont...
To everyone complaining about hitTest not working: make sure to define your explode function OUTSIDE of the onEnterFrame function. Should look like this. class EnemyShip extends MovieClip {
var speed;
function explode() {
this.removeMovieClip();
}
function onLoad() {
_x = 700;
_y = Math.random()*200+50;
speed = Math.random()*5+5;
}
function onEnterFrame() {
_x -= speed;
if (_x<=-100) {
this.removeMovieClip();
}
if (this.hitTest(_root.ship)) {
explode();
}
}
}
I'm on page 7 where it says to test our script. I get 2 errors:
This statement is not permitted in a class definition.
if( Key.isDown(Key.SPACE) )
A class's instance variables may only be initialized to compile-time constant expressions.
var missile = _root.attachMovie( "Missile" , "Missile" + _root.getNextHighestDepth() , _root.getNextHighestDepth() );
Please help!!!! I'm using Flash MX. Please send me a shout if you think you know what to do.