Jim Smith's Recent Forum Activity

  • I have added a TURN SERVER to the multiplayer object and now everything works just fine!

  • I have added a TURN SERVER to the multiplayer plugin and now everything works just fine!

  • Thanks.

    I had assumed that if the official chat room tutorial demo project didn't work for me, then nothing would. But there may be a problem with that demo and I might be able to get the multiplayer object to work in a different project.

    I'll take a look at your tutorial and try to do something really simple with the multiplayer object.

  • I want to create a simple, two player, turn based game. Think tic-tac-toe (noughts and crosses), chess or similar. The two players will play over the internet.

    There obviously needs to be some method by which the game can pass details of one player's move to the other player. I tried using the C3 multiplayer object but I can't get it to work when the players are on different computers. I'm told using a TURN server might solve this but setting one of those up looks a bit complicated and/or expensive.

    So, is there a different technique I can use? I have successfully managed to read arrays and text files from a project file using AJAX and JSON objects. I can update either of these with the current game state, but I can't work out how to write the updated file back so that the other player can read it.

    I have a sneaky feeling that there is an easy answer...what is it?

    Thanks, Jim

  • I have now noticed that if I try this across two PCs connected to the same router the peer always gets kicked. It only works using two browsers on the same PC.

  • Thank you, Oosyrag.

    I shall investigate Turn Servers.

  • I have exported the Multiplayer Chat Example to ishoo.co.uk/GameTest

    When I join as the host, then from the same PC, join the same room as a peer it all seems to work fine. I can send messages from host to peer and back.

    But, when I join the same room as a peer using a different PC on a different router and ip address the new peer gets kicked after a few seconds.

    Am I right in thinking that this should work OK? Do I need to set up something somewhere?

    Thanks, Jim

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there a tutorial for using CS3 to make a simple, turn-based, two player game played over the internet? Something that would work with a game like chess for example?

    I looked at the first part of the multiplayer tutorial, but that seems to be aimed at action games where every millisecond counts. It seems a bit over-complicated for what I need.

    I am looking for something simpler if possible. It could be peer to peer or hosted on a server.

    Grateful for any help!

    Thanks, Jim

  • Got it!

    I had inadvertently ticked the "Unbounded scrolling" box.

  • Just started the tutorial and I am very impressed so far.

    When I preview my work I get a white bar at the top of the window. Screenshot attached.

    What have I done wrong?

    Thanks, Jim

Jim Smith's avatar

Jim Smith

Member since 2 Oct, 2020

None one is following Jim Smith yet!

Trophy Case

  • 4-Year Club
  • Email Verified

Progress

5/44
How to earn trophies