0 Replies Latest reply on Jan 19, 2010 5:47 PM by TheEricBraun

    Making you have to unrealease to release again

    TheEricBraun Level 1

      Hey. Im making a rock band 2 drum style game and i've come across a problem. Whenever theres 2+ notes together, all i have to do is hold down the button ( in this case space ) and it hits both of them without any penalty (which i havnt come across yet). But what i would liek it to do is that when u come across these notes you have to release space then press it again or else the note wont hit. Here is the code i am currently using.

       

      onClipEvent(enterFrame){
      if(_root.hitspace.hitTest(this)&&(Key.isDown(key.SPACE))){
        _root.score+=50;
        _root.streak+=1;
        unloadMovie(this)
      }
      if(_root.spacehitbad.hitTest(this)){
        _root.score-=50;
        _root.streak=0;
        unloadMovie(this)
      }
      }

       

      Where hitspace is the part where the note has to come in contact with when u hit the note. and spacehitbad is the back where if the note hits that it means you have missed the note. If anybody could please help me it would be much appreciated. Thanks

       

      Eric