Associate a background with a map?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

prodigyrick
Posts: 8
Joined: 06 Jul 2014, 15:31

Associate a background with a map?

Postby prodigyrick » 13 Jul 2014, 06:08

Is there a nice and easy way of associating a background with a particular room/map in AS3?
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Associate a background with a map?

Postby rjgtav » 14 Jul 2014, 01:45

Hello,

You can use Room Variables in order to achieve that, as Room Variables are specific to each room.
A good strategy would be to store the map's ID or the map's swf path as a Room Variable.

More information at:
www.smartfoxserver.com/docs/1x/docPages ... /index.htm
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.
prodigyrick
Posts: 8
Joined: 06 Jul 2014, 15:31

Re: Associate a background with a map?

Postby prodigyrick » 14 Jul 2014, 07:01

ty very much

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 56 guests