Post a new message
Welcome Developers!
Speak amongst yourselves or feel free to leave any
questions regarding Action Script and the API for our development team.
News, events and contests will be posted here as well.
Forum Administrator: Ofir Weinstein, Yoav Zibin
doAllSetMove
cavalcade
Posted on: 14:39 , 23/10/2009
Hi,
What does the method doAllSetMove() do? There doesn't seem to be any info of it in
here but it was used on the MineSweeper example. I can't quite figure out what it is for though.
Thanks,
Shiki
Recommend
Reply
doAllSetMove
Ofir Weinstein
Posted on: 10:28 , 26/10/2009
We are currently working on new easy to use documentation as this one,as you have already mentioned is a bit lacking.
in general doAllSetMove is used to let the server know that the game finished a phase in games which are not turn based(in turn based game toy use the doAllSetTurn)
Recommend
Reply
Emulator
mikec
Posted on: 23:55 , 22/10/2009
Can you just use the Emulator or are you suposed to used the online server for your release version?
Recommend
Reply
-
but the online Tester will give you the ability to test your game against a live server,unlike the emulator which uses a flash as a server.
if you need any help with your game or the online tester feel free to contact me at ofir@come2play.com
Recommend
Reply
-
"Coming soon: We’ll wrap your game in a SWF file, which you can submit as a stand alone game to all leading online gaming venues."
This sounds great, should enable sponsorship and more. What's the ETA?
Recommend
Reply
-
-
downloading?
Ofir Weinstein
Posted on: 12:35 , 13/09/2009
-
Hi, I'm using FlashDevelop as my dev environment which poses some unique problems.
At the moment I'm trying to build the 'snake' demo using that tool. It requires me to specify a file as 'always compile' - that file being the entry point for the program.
I tried SnakeMain.as but then I get the usual error about needing to derive from Sprite to be able to connect to root (SnakeMain extends ClientGameAPI which does not extend a Display Object). So that's not it.
It seems like the entry point file might be buried somewhere in your API, but I can't work out which one it is. Can you tell me which file I should 'aways compile' in order to make this run? ie. When starting these demos, what's the entry point?
Recommend
Reply
compiling our games
Ofir Weinstein
Posted on: 10:40 , 24/08/2009
I am unfamiliar to the FlashDevelop environment, but I believe it shouldn't be much different from the way the flex environment works.
All you need to do is create one of you own 'always compile' files,and create there an instance of the game you wish to compile.
In case you have a version of flash you can just compile the FLA.
if you find ant difficulties with these solutions try contacting me at ofir@come2play.com
Recommend
Reply
-
My game was working fine today, when all of a sudden it starts givng me this error when ever call doStoreState(): Error message=An assertion failed! name=You forgot to call SerializableClass.register for shortName= arguments=[[\"PlayerStateEvent\"]].
I've no idea what I changed to stop it workng and don't wish to start over again. Any idea what the problem may be?
Recommend
Reply
-
Nevermind. It turns out I was forgeting to call SerializableClass.register. Strange how it seemed to be working before though.
Recommend
Reply
seriliazableClass
Ofir Weinstein
Posted on: 19:09 , 30/08/2009
You need to register each class that passes through the web.
If you create an instance of the class before receiving one from the web everything should be fine as the class constructor auto registers your class.
But often you can get a call from your opponent which your client won't recognaize,as the class was not registered.
That is why we strongly recommend registering your class as soon as possible in your code(before calling the doRegister call)
Recommend
Reply
-
I know how to get player id but how can I get the opponent id and viewer id. Is there any method for calling the id such as getOpponentID():Array or getViewerID():Array?
Recommend
Reply
Um!!
ookpalm
Posted on: 19:42 , 19/08/2009
To Come2Play team, please make this forum active! This thread was posted 4 days ago and has no reply at all T_T
Recommend
Reply
id management
Ofir Weinstein
Posted on: 10:31 , 24/08/2009
each game that starts sends your game a gotMatchStarted call
this call contains allPlayersIds an Array of all participating players in the game
To know if you are a player check if your user id,T.custom(CUSTOM_INFO_KEY_myUserId, null) as int,is in the Array if so you are a player and the rest of the ids are your opponents,if not you are a viewer and you are watching the rest
Recommend
Reply
-
Does Come2Play AS3 API support more than 2 players?
My game needs 6 players.
Recommend
Reply
qestion
mrskioml123
Posted on: 14:50 , 17/05/2009
I still really don't get how to make a game so in easy step can you explain it one buy one to me thank you
Recommend
Reply
-
As a player, I want to know, when I am playing chess, does the java client located on my opponent's computer "know" MY I.P. address?
Or does my opponants java client only handshake with the come2play server, and the server then relays the information to my I.P. address.
Another way of asking the question is, is my computer communicating directly with my opponants computer? Or does my computer communicate with the server and the server relays the information to my opponants computer.
Thanks for the info.
Recommend
Reply
flash client secuirity
Ofir Weinstein
Posted on: 13:13 , 29/01/2009
Well the answer to your question is built out of two parts:
1) There is no java client on either player computer; they both only have a flash client that connects to our java server
2) Which can be inferred from the first part, all transmissions go through our servers. Currently flash does not support communication between her clients directly
Recommend
Reply
I.P. adress.
chesster77
Posted on: 14:41 , 31/01/2009
So does my opponent's flash application have my i.p. address? Is my I.P address supplied to the opponent's computer / flash application?
Recommend
Reply
No
Ofir Weinstein
Posted on: 10:46 , 24/08/2009