|
|||
How To's |
|||
1. Adding/modifying the characters |
|||
To add a new character (same information applies to modifying an existing one):
|
|||
2. new! Adding local bots (automated characters) |
|||
If you have a game where you need to have "monsters" on the map, you can use so-called "bots". Those are the characters that act on their own, according to the AI logic assigned to them. We made it very easy to add bots and even included a simple example - check SimpleBotDemo.swf application in your main folder. This applications adds the bots to the map using the code. But usually you will be adding bots by including them into map XML, as you do with furniture and other objects (Map Editor generates the XML in that case). Just add this block to the map XML and the bot will be added to the map when it loads: <character> Here is the parameters:
IMPORTANT: These are "local" bots. It means they will not work in multi-user environment (they will, but each user will see different bots, since they are created locally). To create bots for multi-user applications, you would need to write a socket server extension that creates them on the server and then synchronizes them between the clients. |
|||
Last updated: September 16, 2009 |