Noah Petherbridge
a1b1cf175b
|
3 years ago | |
---|---|---|
.. | ||
Makefile | 3 years ago | |
README.md | 3 years ago | |
build.sh | 3 years ago | |
character.js | 3 years ago | |
stand-left.png | 3 years ago | |
stand-right.png | 3 years ago | |
walk-left-1.png | 3 years ago | |
walk-left-2.png | 3 years ago | |
walk-left-3.png | 3 years ago | |
walk-right-1.png | 3 years ago | |
walk-right-2.png | 3 years ago | |
walk-right-3.png | 3 years ago |
README.md
Playable Character
This is an example how to create a custom playable character for your level. This will create a grayscale copy of the game's default player character. His script has support for two different A.I. patterns depending on whether he is controlled by the player or not.
Player Controls
Drag the doodad into your level and use the Link Tool to connect him to your Start Flag. Then you will play as this doodad when the level starts.
In-game he updates his animations based on the direction you're moving him in the level.
A.I. Controls
If dropped in your level as an enemy doodad, the A.I. will have it walk back and forth along the ground, turning around when it hits an obstacle.
It can pick up keys and unlock doors with those keys, and it can have its items stolen by a Thief.
It can activate buttons and switches (the kinds that activate just by walking onto them), and it can fall through trapdoors.
Basically the same A.I. as the Red and Blue Azulians.