Ok, I want to create a live action combat system, where, while on the world map, you will randomly encounter monsters based on your level.
That part is easy, and I am sure I can do that.
Heres the thing, when the player encounters a monster {or monsters] I want the monsters to be generted on a new map, and have the player sent there.
When the player is done with the battle, and leaves the field, the complete field is deleted.
this is for online game play, so I hope it wont cause too much lag.
Any ideas how I can pull of the map part?
ID:152839
Sep 4 2005, 2:55 am
|
|
Sep 4 2005, 3:32 am
|
|
I'm not sure exactly how to do that but when I tried a RPG of my own, I put the monsters and battle screen on the client's screen. Then I store the player's current location and send him to some other inaccesable point on the map so other characters cannot interfere with him/her. When the battle is over I sent the player back and restored his/her screen. Not sure if this helps, just throwing the idea out there.
|
In response to Officer Falcon
|
|
That is not what he is looking for.
Anyway, Swapmaps would work, event though I never took the time to find out how to use it.. |
SwapMaps is the way to go. However, I must state that for a mutiplayer game, use /swapmap New() and not CreateFromTemplate. It's better for single player games. It's sort've slow. /swapmap New() can basically take care of this process. To place objects, just use /swapmap.BuildFilledRectangle() and /swapmap.BuildRectangle(), whatever you have to use.
|