Babylon-7's Recent Forum Activity

  • I'm making a simple game to get the hang of p2p multiplayer. I have a player and a vision cone for the player that determines what the player can see, the vision cone should only be visible to the player it is assigned to. To do this, I made it so that if you are a peer, you delete the existing cone for the host and create a non-synced vision cone on only the peer's screen. This way the host does not see the peer's vision cone and vise versa. The problem I am having is when I pin the cone to the player on the peer's end, when I run it, the cone does not follow the player.

    Can the pinned object not be moved because it only exists on the peer's side and the host has to move it?

    Or is this a problem with the multiplayer plugin or the pin behavior?

    Is having clientside objects that only exist for the peer even possible?

    Any insight would be much appreciated.

  • Oh, I see now. Thank you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm trying to create a very simple peer-peer tank combat game where there is a different sprite for the hull and for the turret. the hull moves based on WASD inputs and the turret points at the mouse position and is pinned to the hull. the turret and the hull are put into a container. I sync both the hull and turret separately because they both accept different inputs to change their position and angle.

    The problem is; when a peer joins the game it creates an extra copy of both the host's hull and turret and the peer's hull and turret. the error only occurs on the peer's screen. on then peer's end, the turrets for the host are pinned to host's hull but one doesn't rotate, and the second hull created for the host is at (-1000, -1000). the turret 2nd turret for the peer spawns at the location that the peer's tank is created and the peer's 2nd hull is also at (-1000, -1000).

    So I have read all the multiplayer tutorials and looked over the multiplayer example "real-time game" multiple times and read the documentation for multiplayer, and as far as I can tell there shouldn't be a problem with my game. but there is.

Babylon-7's avatar

Babylon-7

Member since 4 Jun, 2020

None one is following Babylon-7 yet!

Trophy Case

  • 4-Year Club
  • Email Verified

Progress

5/44
How to earn trophies