hello i im makin a gamee like dance dance revolution or guitar hero that type. so i have arrows the go up and a line on the end well this is my problem i have a code that wen space is pressed and the space movie clip is hitTest the line 100+ to score but wen the user press space and its not hitTesting i -50 score but its messup here i let u the code :
SpSpeed = 7;
score = 100;
counter = 0;
space.onEnterFrame = function() {
this._y -= SpSpeed;
if (Key.isDown(Key.SPACE) and this.hitTest(linea)) {
counter += score;
this._y = Stage.height;
}
if (Key.isDown(Key.SPACE) and not this.hitTest(linea)) {
counter -= 50;
}
if (this._y < 0) {
this._y = Stage.height;
}
if(counter < 0){
counter = 0
}
};
tnx if its not clear plz post and i try harder tnx a lot
oh and i forget this have nothing to do with the last thing but i was wondering how u messure the mouse speed like here: [COLOR=white]http://dissoluteproductions.com/mag_exf.php?file=Mouse%20speed[/COLOR]
tnx