Page 1 of 1
How to make a map?
Posted: 22 Jan 2012, 09:39
by n3rdygamer
I was wondering how to make a map?
Im using Smartfoxserver As2 avatar chat..
Like a 'WORLD MAP'
For example- If you are at 'Town' and you want to get to the beach quicker, you press on the map then press on beach to get there quicker.
How can i do this? Please help

?
Posted: 22 Jan 2012, 18:59
by rjgtav
Hi.
In SFS1x there are Rooms, which can represent several things, such as games, map areas, etc. So you will need to have Rooms for each of those "map areas". Then, to switch between these areas, you just have to join the specified room and leave the previous one.
That's the server-side part. On the client-side, you have to show the correct graphics for that Room, based on, for example, the room's name or a Room Variable which says to which map does it refer. For example, if you call a room Beach_1, you can filter that name and then check that it belongs to the Beach area, so you just have to load the according map.
It's advisable for you to load these maps as external swfs, as this way you don't need to have all the maps in the Main swf, saving lots of space and improving performance.
Again, I suggest you to read the docs at
http://www.smartfoxserver.com/docs
Posted: 24 Jan 2012, 09:02
by Bax
This message is not related to OpenSpace (and actually not much to SFS too). Moving to another forum.