Using smartfox without Unity.
Posted: 30 Apr 2010, 05:05
I've been struggling with this for a while and it seems like I'm getting nowhere fast... Has anyone got some basic examples of using SmartFox using the ASP.net API that don't use Unity?
Basically I'm building a system that needs to be used on a wide variety of machines at low download cost, so external plug-ins like Unity and Flash are out of the question. However I would like to use smartFox, as the application involves a lot of updating and sending variables all over the place.
What I'm doing is creating a smartfox "component" for my page, which stores and references a smartfox object in the session.
So far, I've got it set up so that the c# code on my asp.net page to reload an ajax update panel every second. If smartfox is not connected, try connecting. If it is connected, try logging in and if it is connected, try joining a room (at this stage if it meets all those criteria it does nothing).
It seems to connect fine, and I think it's logging in ok, but when I try and join a room nothing is happening. Neither the onJoinRoom or onJoinRoomError handler is ever getting called, and I'm not sure why.
If anyone has any examples of using smartfox this way, or any better alternatives, please please let me know.
Basically I'm building a system that needs to be used on a wide variety of machines at low download cost, so external plug-ins like Unity and Flash are out of the question. However I would like to use smartFox, as the application involves a lot of updating and sending variables all over the place.
What I'm doing is creating a smartfox "component" for my page, which stores and references a smartfox object in the session.
So far, I've got it set up so that the c# code on my asp.net page to reload an ajax update panel every second. If smartfox is not connected, try connecting. If it is connected, try logging in and if it is connected, try joining a room (at this stage if it meets all those criteria it does nothing).
It seems to connect fine, and I think it's logging in ok, but when I try and join a room nothing is happening. Neither the onJoinRoom or onJoinRoomError handler is ever getting called, and I'm not sure why.
If anyone has any examples of using smartfox this way, or any better alternatives, please please let me know.