# Easy one here...i think

**URL:** <https://forum.kirupa.com/t/easy-one-here-i-think/251578>\
**Category:** Uncategorized\
**Created:** [February 10, 2008, 4:57pm UTC](https://forum.kirupa.com/t/easy-one-here-i-think/251578 "2008-02-10T16:57:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blessoul](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@blessoul](https://forum.kirupa.com/u/blessoul)\
**Post date:** [February 10, 2008, 4:57pm UTC](https://forum.kirupa.com/t/easy-one-here-i-think/251578/1 "2008-02-10T16:57:51Z")

</div>

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]](http://dissoluteproductions.com/mag_exf.php?file=Mouse%20speed)  
tnx
