Thread: Keys in Order
View Single Post
  #3  
Old 01-02-2014, 12:10 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
What do you have so far? Post some code.

Probably the simplest approach is keep track of the player's current position in a combo. When they hit the right key, increase the position. When they hit a wrong key, reset their position. If they hit the end of the combo, they've hit all the keys in the right order, so do whatever action.

But there are lots of potential approaches here, so post some code so we know where you're getting stuck.
__________________

Last edited by cbk1994; 01-02-2014 at 12:12 AM.. Reason: wtf is this
Reply With Quote