ID:173469
Dec 28 2003, 3:17 pm
|
|
Ok in my new fighting game Shenkaku (hopefully be a hit for one of the first fighting games) How would I make a system to do a combo? like down left punch?
|
Copyright © 2024 BYOND Software.
All rights reserved.
Whenever someone presses a key, add a key to moves. For example, if you press A, do moves += A. Then, use findtext() to search for any combos that could be made. For example, if findtext(moves, "ABC") is true, then the person just pressed A, then B, then C. If you find something, perform that move, then set moves to "". Otherwise, call eraseMoves().