Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Multiple actions on a single key


Recommended Posts


I am trying to use one key (E) for 2 actions --> animation slashLeft and animation slashRight depending on the char facing left or right (to where the enemy will be) 

I came up with the stuff below...is there a better way? Please tell me there is:/ (so you can walk and hit at the same time, in example?)

//More cursor-key-code above this
 else if(this.keyE.isDown){

    }else if(cursors.right.upDuration(200))



Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...