Wsoukkachang's Recent Forum Activity

  • Lol I know it's confusing with such little comments. :/ I am starting to write more so it won't confuse me either. Thanks for taking a look at it though. Yeah the code works for player 1 flawlessly, just wondered why I didn't for the rest of them. They call on the same message to destroy when the round is over, but they do different things depending on the Player won. It might be my computer or something. That is weird that it worked for you, logically, it should work for me as well, but for some reason it destroys the card then it respawns. Thanks for the input, I am still working on the fix.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I am making an online multiplayer card game and I am trying destroy the card sprites after the round is over. The weird thing is that I use the exact code for the other players and it works fine.

    After the round is over, Player 1, 2 ,3's card are destroyed but player 4's cards are destroyed but one. It is frustrating matter. I have looked all over for the bug but to no avail. Something about the last player keeps spawning a card on Player 1 card slot after it is destroyed. I disable the code and let it play and it works fine for the second round. But something about the first round makes it spawn another card. Any help would be greatly appreciated. Also I tried using the debugger to find the code that is making the Player 4 card respawn, but it was no help. When I use the breakpoint at that event, it works fine in the preview. That is all I know. Any help is appreciated. Thanks! Also

    Here is a video link for the bug. I tried my best to explain what is going on.

    Also I have provided a link to the capx if you want to look through it.

    https://dl.dropboxusercontent.com/u/157600816/Super%20Six%20Card%20Game%20%28Alpha%29.capx

  • I am creating an online multiplayer card game and wanted to know how to make a player database. In this player database I want to have the player's alias, e-mail, level status, and current in-game credit. For example, if someone logins to the game using the same e-mail as before, then all of the player's settings will be the same and will updated if anything changes (change in level/ alias, losing credit, etc). Does anyone know how I would go about this? Would I incorporate a PHP file?

  • Subscribe to Construct videos now

    This is a game I am working on, Super Six Card Game!

    It's a online multiplayer card game. Still under development.

    Tell me what you think?

    And give my IndieGoGo page a look as well. Thanks!

    https://www.indiegogo.com/projects/supe ... 71910#home

  • Thanks the thread is solved! This helped alot! https://www.scirra.com/manual/174/multiplayer

  • This thread is solved. I found out my the solution from the entry here. https://www.scirra.com/manual/174/multiplayer What was wrong on my part was that I had conflicting actions in each layout, so it couldn't sync the global variable correctly.

  • I don't what I did but now it is working. Maybe it is because I used the sync variable and now it works for the peers. They are receiving the value now. But I've come to another problem, before it was the host having the problem sending the card value, now, it's the peer that cannot send its value to the host. Any idea on how to update the host with the peer values? I've been reading the multiplayer tutorials over and over, and they are a big help, just kind of hard to grasp the process in your first complex multiplayer game I guess. Just when I think I got it, something else comes up. Thanks for trying to help me. It is very much appreciated.

  • Tried that and it still doesn't work. It gives me a value of 0. :/

  • Here's some screenshots of what I am doing. I hope it helps.

    [attachment=1:3qyjn5n8][/attachment:3qyjn5n8]

    [attachment=0:3qyjn5n8][/attachment:3qyjn5n8]

  • How do I send messages to different layouts in multiplayer?

    I am trying to make a card game and one of the obstacles I am running into is sending a message across to a different layout.

    For example, the host (player one) sets a global variable to his current card value "Player1CardValue" and wants to send it to a peer who is on a different layout, how do I send this message?

  • Hmm I am trying to set the variable over two different layouts... could this be the problem?

    For example, Player 1 (the host) sets his player card value as 6. Next, Player 1 card value then is stored in a global variable, Player1Card. He then broadcast the message over to his peers (which are all on different layouts). The peers do not receive the value but a NaN value instead. (I did some research on what NaN stands for and it stands for Not A Number) SO the peers are not receiving a number value. I'm thinking maybe because they are on different layouts that the action is not being signaled to the rest of the peers. Also using the broadcast message action needs a string, no?

Wsoukkachang's avatar

Wsoukkachang

Member since 20 Mar, 2014

None one is following Wsoukkachang yet!

Connect with Wsoukkachang

Trophy Case

  • 10-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies