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 ?
How to make a map?
-
- Posts: 2
- Joined: 22 Jan 2012, 09:29
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
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
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 42 guests