How do I create a shotgun in multiplayer

0 favourites
  • 4 posts
From the Asset Store
Background Story generation templates. See the Arcade demo.
  • Hi there (and always I'm sorry for my english)

    I'm trying to create a shotgun in a multiplayer game.

    here the events:

    Okay. This works really fine in single player, but in multiplayer, if two (or more) peer got the same variable (weapon=2), the shotgun shot for each player, and not for the controlled peer only.

    I know the bug: is selected by the red square in the image above.. but I don't know how to resolve it.

    I can't understand how to fix it for controlled player only, and at the same time to show bullets for the others peers.

    I hope I explained well my problem Thanks for any help!

  • Have you tried setting another condition?

    Maybe find a way to figure out the player's IID, and use that?

    Maybe give the shotguns a variable equal to an instance variable a specific player has so that only that one shotgun will fire.

    I have not tried multiplayer so I'm not sure if that would help, but it seems that you just need to have the system hone in on what shotgun you want being fired.

    Hope I helped or gave you some ideas.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is how my shotgun is laid out. It works for me.

    Setting the active gun bit to 1,1 activates the shotgun and deactivates the pistol. While the normal gun bit controls all the firing

  • My own shotgun now works well. I removed the latest events, and replaced create with spawn.

    After each spawn i put a random angle and it seems really nice!

    Now my last problem is with caricatore that you can see in the image. I've assigned 7 bullet to my shotgun, and works, but the last shot is not sync whit others players. I will solve this today, I hope.

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