YesNoOk
avatar

Introduction to States (Read 1079 times)

Started by Just No Point, September 29, 2015, 12:16:09 am
Share this topic:
Introduction to States
New #1  September 29, 2015, 12:16:09 am
  • ******
    • www.justnopoint.com/
Programming states is the hardest part of creating a character. It entails a lot of work, testing, and sometimes trial-and-error. In this section, we'll often refer the player being programmed, and to his opponent as well. Let us call the player whose states we are editing P1, and his opponent P2.

Do not be discouraged if you do not understand a lot of this document on your first reading. The best way to learn about states is to first play around with values in the CNS of a completed character, and see what effects they have on him or her. There's nothing to fear from "tweaking" the CNS; M.U.G.E.N is designed to detect syntax errors and report them.

Included with the M.U.G.E.N distribution package is a character named Kung Fu Man (KFM for short.) You can find him in the directory chars/kfm.

The CMD file contains declarations of command names and the definition of State -1, a special state which is used to control how the character responds to user input. See the CMD document for more information.

Below are some concepts that will be useful for you to know.
Life and power

Control

Game-time and state-time

Position, velocity and acceleration

Juggling
Last Edit: September 29, 2015, 12:20:53 am by Just No Point