Creating new variable inside AS

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

Moderators: Lapo, Bax

xMoMx
Posts: 36
Joined: 13 Jun 2009, 06:11

Creating new variable inside AS

Postby xMoMx » 22 Jun 2009, 00:52

I read all about Room and User Variables and I still cannot find how to create new variables once the game is already started.

What I want is a function like 'spawnNewMonster' where server create a new set of Array to store values and send what need to be updated to the clients. (I don't want to use Room Variables, since some are internal game variables that don't need to be updated on client side.) Any tutorial on this?

My Thx,
User avatar
Lapo
Site Admin
Posts: 21645
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 22 Jun 2009, 06:58

I read all about Room and User Variables and I still cannot find how to create new variables once the game is already started.

Check the Avatar Chat example, it shows how to use User Variables and keep everybody in synch.

http://www.smartfoxserver.com/docs/docP ... /index.htm
Lapo
--
gotoAndPlay()
...addicted to flash games
xMoMx
Posts: 36
Joined: 13 Jun 2009, 06:11

Postby xMoMx » 23 Jun 2009, 19:59

But 'room variables' and 'user variables' send update every times they changes right? I'm looking for a generic way to store huge chunk of O/R mapping data of any given room.

Any pointer?

:?

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 28 guests