|
@ -4,12 +4,28 @@ |
|
|
|
|
|
|
|
|
This is an example how to create a custom playable character for your |
|
|
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 |
|
|
level. This will create a grayscale copy of the game's default player |
|
|
character. |
|
|
|
|
|
|
|
|
character. His script has support for two different A.I. patterns |
|
|
|
|
|
depending on whether he is controlled by the player or not. |
|
|
|
|
|
|
|
|
If you Link him to a Start Flag, you will play as him when the level |
|
|
|
|
|
starts and he faces the direction you're moving and animates and so |
|
|
|
|
|
on. |
|
|
|
|
|
|
|
|
## Player Controls |
|
|
|
|
|
|
|
|
If dropped in your level as an enemy character, his A.I. is to move |
|
|
|
|
|
right and left, turning around when it meets an obstacle. He is able |
|
|
|
|
|
to pick up keys, unlock doors, and activate buttons and switches. He does not travel through Warp Doors. |
|
|
|
|
|
|
|
|
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. |