Does someone have a CAPX example for Multiplayer?

0 favourites
  • 11 posts
From the Asset Store
Unlock platyers earning coins, and save it with Localstorage
  • I need something to help me make my multiplayer segment of my game. There are bugs and glitches popping out everywhere. I used the Real time Multiplayer Example, but that was hard to understand.

    If anyone would also just want to talk about the glitches and lecture to me on how to fix it, that would also be good, but I'm not always online.

  • Some templates ship with c2; just start a new project and type in "multi" to filter and you'll see them.

  • Some templates ship with c2; just start a new project and type in "multi" to filter and you'll see them.

    I already did and used the real-time.

    It wasn't much help.

  • Describe your glitch?

    The realtime multiplayer tutorial is very basic and concise, you really need to do your best and understand each part of it. While the multiplayer plugin automatically handles a ton of basic net code principles for you, it is still flexible enough to allow for different implementations in terms of multiplayer logic and updates.

    Basically, most projects/examples will be even more complicated than the tutorial example. If you don't understand all the ideas presented in the multiplayer tutorial, it will be very difficult to proceed or troubleshoot problems.

  • Describe your glitch?

    The realtime multiplayer tutorial is very basic and concise, you really need to do your best and understand each part of it. While the multiplayer plugin automatically handles a ton of basic net code principles for you, it is still flexible enough to allow for different implementations in terms of multiplayer logic and updates.

    Basically, most projects/examples will be even more complicated than the tutorial example. If you don't understand all the ideas presented in the multiplayer tutorial, it will be very difficult to proceed or troubleshoot problems.

    Well, one of the most frequent and annoying glitches is that when 2 players join, the First Player (The Host) can't see the second player, but the second player can see the first player (The Host). When you move the First Player, you can see the first player move on the second player's screen but not vice versa.

  • kinda offtopic but is there a way to be able to host the server kinda dedicated on your own ?

  • kinda offtopic but is there a way to be able to host the server kinda dedicated on your own ?

    You can set up your own signalling server if that's what you want:

    https://www.scirra.com/store/game-makin ... server-161

    Or, if I'm right, you can set up a custom server with Node.JS. If I recall right there's been some projects doing this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Describe your glitch?

    >

    > The realtime multiplayer tutorial is very basic and concise, you really need to do your best and understand each part of it. While the multiplayer plugin automatically handles a ton of basic net code principles for you, it is still flexible enough to allow for different implementations in terms of multiplayer logic and updates.

    >

    > Basically, most projects/examples will be even more complicated than the tutorial example. If you don't understand all the ideas presented in the multiplayer tutorial, it will be very difficult to proceed or troubleshoot problems.

    >

    Well, one of the most frequent and annoying glitches is that when 2 players join, the First Player (The Host) can't see the second player, but the second player can see the first player (The Host). When you move the First Player, you can see the first player move on the second player's screen but not vice versa.

    When you say frequent, does it only happen intermittantly (in the same project)?

    If it happens all the time, you have a net code logic error: it sounds like your host is syncing properly, but your peers are not set up properly. Are you using a authoritative host setup like the tutorials? The peer events should not be creating or moving any objects (outside of local input prediction, which can be implemented AFTER you get basic net code working) - only sending inputs to the host, which does all the creating, updating, and syncing of all objects.

    If it works properly sometimes but not all the time, I suspect routing/latency/unstable connection issues, which I can't really help with. But at least to confirm it isn't a networking issue, you can have both host and peer running on the same local host to test (open two tabs).

  • kinda offtopic but is there a way to be able to host the server kinda dedicated on your own ?

    A common solution is to leave any computer/server on with the game open as host in a browser tab or nw.js. This is the simplest kind of "server" and should be sufficient in most cases.

  • kinda offtopic but is there a way to be able to host the server kinda dedicated on your own ?

    Hmm, you kind of gave me an idea. I can make a seperate program to act as the host for a "dedicated server"

    Thanks for the Idea!

  • > kinda offtopic but is there a way to be able to host the server kinda dedicated on your own ?

    >

    Hmm, you kind of gave me an idea. I can make a seperate program to act as the host for a "dedicated server"

    Thanks for the Idea!

    keep me updated

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)