#27073 - mr_square - Sat Oct 02, 2004 4:38 pm
Hi all - I have a little man who runs, and I want him to do a running jump only when 'A' is pressed whilst running right - how would I implement this?
I'm currently using a finite state machine to model sprite animations, so my code is something like:
if(!(*KEYS & KEY_A))
{
nextState = new jumpState;
return nextState;
}
I'm currently using a finite state machine to model sprite animations, so my code is something like:
if(!(*KEYS & KEY_A))
{
nextState = new jumpState;
return nextState;
}