If you don't want to program a fighting game from scratch, you can remix this template so that you can add to it instead of programming the enemies or the player. This code might be confusing.
Credit: Block tales OST: Cruel King Notes: No HP system There MIGHT be some bugs. Haven't seen them tho...