playMaker

Author Topic: Help getting on the path to adding multiplayer to this game.  (Read 3549 times)

LordVecna

  • Playmaker Newbie
  • *
  • Posts: 6
Help getting on the path to adding multiplayer to this game.
« on: October 09, 2022, 05:03:03 PM »
Hello everyone.

I have finished development on a Pass & Play mode(play on same screen) of my remake of a classic game called "Artillery Duel". It is my very first game that I took seriously and completed.

Right now, the game always starts with the red player shooting first, and on impact of that shot, the blue player is then able to manipulate the UI and take their shot. This continues back and forth until one player dies.

My question to you guys, is where do I get started adding multiplayer to this? I would like to have it available on PC and Android, local and online multiplayer. I am thinking the host will always be Red, and the player that joins will always be Blue. I just need a way to hand control of the game to the joining player when it is their turn to shoot, and have that ability taken from them and given to Red after Blue's shot impacts.

I am totally new to this, so if someone could help me as if I know nothing at all, that would be very much appreciated. I tried to look up some youtube videos on the subject, but they all seem to take you in different directions, and I have no idea how much of that is outdated at this point.

Thank you in advance, and here is a gameplay video for reference:

« Last Edit: October 09, 2022, 05:05:26 PM by LordVecna »

blackant

  • Hero Member
  • *****
  • Posts: 525
  • http://blackantmaster.com
    • blackantmaster.com
Re: Help getting on the path to adding multiplayer to this game.
« Reply #1 on: October 17, 2022, 08:59:44 AM »
Interesting the way you destroyed the ground, it remembers me the first try I did with worms like on Construct2, but never fund a good way to do it.

About the multi I'm not sure to help, because I'm actually also trying to reach this step.
maybe you could start taking a look at photon fusion
I did a simple test project, and it's seems not really complicated to understand how it works, it's well documented.

about the first player start, there are many ways to randomize it.
  • Random Event,
  • Random int,
  • Array get Random,
  • random, random, random, random :D

mrminico

  • Full Member
  • ***
  • Posts: 129
Re: Help getting on the path to adding multiplayer to this game.
« Reply #2 on: October 15, 2023, 01:09:02 PM »
Hello everyone.

I have finished development on a Pass & Play mode(play on same screen) of my remake of a classic game called "Artillery Duel". It is my very first game that I took seriously and completed.

Right now, the game always starts with the red player shooting first, and on impact of that shot, the blue player is then able to manipulate the UI and take their shot. This continues back and forth until one player dies.

My question to you guys, is where do I get started adding multiplayer to this? I would like to have it available on PC and Android, local and online multiplayer. I am thinking the host will always be Red, and the player that joins will always be Blue. I just need a way to hand control of the game to the joining player when it is their turn to shoot, and have that ability taken from them and given to Red after Blue's shot impacts.

I am totally new to this, so if someone could help me as if I know nothing at all, that would be very much appreciated. I tried to look up some youtube videos on the subject, but they all seem to take you in different directions, and I have no idea how much of that is outdated at this point.

Thank you in advance, and here is a gameplay video for reference:


Yeah I'd also suggest learning photon. The addon has playmaker actions which is a huge plus. Check this video playlist to have a general idea of how you can go about it.

https://www.youtube.com/watch?v=2dgyllKEOgY&list=PLYYCDVRRWC7cbFGWckVXgAl5i8MRq9zVc

This game seems fairly easy to integrate online multiplayer, you'll just need to learn the basics of networking first. Good luck!