I think i have bug 1:
When the other player leaves the game i do not get a notice about this.
Only see that the other tank cannot be shot & does not move.
In the serverside code you would need to use something like next:
public override void UserLeft(Player user)
{
if (user == player1)
{
Broadcast("left", 0, player1.Username);
player1 = null;
}
else if (user == player2)
{
Broadcast("left", 1, player2.Username);
player2 = null;
}
}
At the local side the 'left' broadcast can then have some response:
case "left":{
//some code to reset game
break;
}
Help beta test my first multiplayer game?
rdz说
很久以前 | 帖子#2最后编辑很久以前
psyon说
很久以前 | 帖子#3The server side sends the "left" message, the client side just doesnt handle it yet. I didnt think people would want to just sit there and wait. What do you think the game should do when someone leaves?
rdz说
很久以前 | 帖子#4At least it should show some message, i think.
'player .... has left the game'
(ps. If you are the first player in a game you also have to sit and wait)
'player .... has left the game'
(ps. If you are the first player in a game you also have to sit and wait)
最后编辑很久以前
mike950说
很久以前 | 帖子#5when testing in 2 browsers they both just sit there waiting for players
to join...
also i had multiplayer combat out for a while ..same name different game lol
http://nonoba.com/mike950/bw
to join...
also i had multiplayer combat out for a while ..same name different game lol
http://nonoba.com/mike950/bw
psyon说
很久以前 | 帖子#6Mike, a few other people have mentioned that issue, but leave before I could get details from them. What version of flash do you have? What browser? What operating system?
Also, I saw your game after I initially uploaded mine. I'll probably change the name at some point.
Also, I saw your game after I initially uploaded mine. I'll probably change the name at some point.
mike950说
很久以前 | 帖子#7im in xp using ver 11 of firefox
but i doubt the version is causing it..
let me give you an error output from debugger
remember to always use the debugger
instantiation attempted at non-constructor
Bullet()
but i doubt the version is causing it..
let me give you an error output from debugger
remember to always use the debugger
instantiation attempted at non-constructor
Bullet()
YaiEf说
很久以前 | 帖子#8The game caused the flash debug player to bring down firefox because of the immense amount of unhandled errors. Creating a game results in a couple of errors (all related to the Bullet class). Joining my own game from another tab brought the browser down.
You should install the debug player yourself: http://www.adobe.com/support/flashplayer/downloads.html
You should install the debug player yourself: http://www.adobe.com/support/flashplayer/downloads.html
psyon说
很久以前 | 帖子#9I didn't realize there was just a debugger player for the browsers. I used the debugger from the flash environment, and it showed no issues. Ill install the debugging player right now :)
psyon说
很久以前 | 帖子#10Ok, I have the debugger player installed, but I don't get any errors about the bullet class.
mike950说
很久以前 | 帖子#11try running it in internet explorer..thats where i get the errors
psyon说
很久以前 | 帖子#12The only error I get is a warning about meta-policy
I did make a small change though before I tested in IE. When I looked up the error you had pointed out, I found a line in the AS that might have cased it.
private var beeper:Beeper;
then later
this.beeper = new Beeper();
Some things I read said that having the variable name the same as the Class name would causes issues, but I thought the case might make a difference, and I also didn't know why it would only affect some people. Either way, I changed beeper to beepfx.
I did make a small change though before I tested in IE. When I looked up the error you had pointed out, I found a line in the AS that might have cased it.
private var beeper:Beeper;
then later
this.beeper = new Beeper();
Some things I read said that having the variable name the same as the Class name would causes issues, but I thought the case might make a difference, and I also didn't know why it would only affect some people. Either way, I changed beeper to beepfx.
回复主题
现在就注册以回复主题
psyon说
很久以前 | 帖子#1http://www.nonoba.com/psyon/multiplayer-combat
I look forward to any comments.