Page 1 of 1

Creating new variable inside AS

Posted: 22 Jun 2009, 00:52
by xMoMx
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,

Posted: 22 Jun 2009, 06:58
by Lapo
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

Posted: 23 Jun 2009, 19:59
by xMoMx
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?

:?