charhew's Forum Posts

  • 4 posts
  • If it's your site can you just continue to point to the old game until you decide the update is ready. Then point to the new game.

    winstreak How do I do that? Right now I just have everything uploaded to the root folder of my website, and index.html is where the game is played.

  • Hi everyone! I'm helping my brother set up his website to host a game he built with Construct. One problem we have is that when he updates his game, it takes a few minutes to upload all the files, so if anyone is playing the game or refreshes the page in the middle of the update, it might cause errors for the players. What is a good way to solve or prevent this issue?

    Is there a way to "shut down" the website for a few minutes while the update takes place? Or perhaps a different, better solution?

  • By the way, the game is hosted here if you want to take a look: alvinhew.com/multiplayer-test

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When I open multiple browsers and connect to my game, I can see all instances of myself. But when I send the game to a friend and ask them to join the same room, we can't see each other. Why is that?

    My game uses peer to peer connection to facilitate communication between multiple users through a web browser. My app works by connecting the user to a signalling server which helps peers find each other and puts them into a "room". One peer is made the host, and the host acts like the server for the other users.

    Currently, my app works perfectly when I open multiple browsers on the same computer and establish connection that way. The problem arises when I try to connect with different computers. The computers "see" each other and know that there is a connection to another peer, but they can't send each other information. And after a short time, one or more of the peers will lose connection to the host.

    I'm 99% sure the issue is not in my code because when I uploaded Construct's demo code for multiplayer, it gave me the exact same problem and also starts to kick the other players. I suspect the issue lies somewhere in my server settings, but I don't know anything about how that works and would really appreciate some pointers! I currently use HostGator to host my Construct HTML5 files.

    Notice in my screenshot, I (char) have joined. It recognizes that Alvin is the host, but his name does not appear in the Player List.

  • 4 posts