I think there's a more efficient (and cleaner) way to do this, but what about...
I think there's a way of searching an array for a specific combination of elements, but I can recall it at the moment.Code:for(i=0;i<key_pressed_array.length;i++){ if (key_pressed_array[ i]== "down"){ if (key_pressed_array[ i+1]== "right"){ if (key_pressed_array[ i+2]== "strong kick"){ //execute super move } } } }
hth
japangreg




Reply With Quote