Author Topic: Improve multiplayer in PB  (Read 1954 times)

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Improve multiplayer in PB
« on: April 04, 2020, 05:56:01 PM »
Multiplayer in Platform Builder is actually very inefficient.
Very few commands are actually able to work with player 2, even the most simpler ones.
This is what I think TingThing should add to make PB better with multiplayer.

First of all, check for basic stuff:
I've seen that you're unable to check for money, health or ammo for each player individually, naming some examples. For player 1 or player 2, should be able to check for each player stuff. Like:
Code: [Select]
for player 1
var p1money = [money]
for player 2
var p2money = [money]
This should work with all types of things.
Also they need to work with conditionals and normal commands like
Code: [Select]
for player 2
money + 1
if money > 100
{
money - 100
lives + 1
}

For example with keys and physics:
Code: [Select]
for player 2
speed = 50
if key = pick //Run script for player 2, when he presses HIS pick button.
{
speed = 80
}

Player bracketing and conditional
For extra functionality, [player] should return the number of the player that is more near to the command execution, if there is none, returns -1.
For example, if you have an item and you want some commands to be executed for that player, just do this:
Code: [Select]
for player [player]
money + 1
This bracketing doesn't change with for player commands, it returns the number of the original player executor.

Character command prompts for buttons
There are character cps for each buttons like pick or attack, but they almost work with the player 1's keybinds, and I think they should work with the player that controls the character.

Spawn command capability
Right now you can do:
Code: [Select]
spawn enemy 1, playerWill be cool if we can select in which player it spawns:
Code: [Select]
spawn enemy 1, player2
Hope this get added soon for 8.0
« Last Edit: April 04, 2020, 06:10:11 PM by Antikore »
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Improve multiplayer in PB
« Reply #1 on: April 04, 2020, 05:58:58 PM »
Multiplayer should also have more than just this being compatible. These are needs, and there are other things that should be added.

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Re: Improve multiplayer in PB
« Reply #2 on: April 04, 2020, 06:02:28 PM »
Yeah, true.
But still this have higher priority, if multiplayer capability is low, adding things is useless.
« Last Edit: April 04, 2020, 06:08:54 PM by Antikore »
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Improve multiplayer in PB
« Reply #3 on: April 04, 2020, 06:29:54 PM »
Exactly my point.

Gizgord

  • average
  • Level 18: Statix
  • *
  • Posts: 835
    • View Profile
Re: Improve multiplayer in PB
« Reply #4 on: April 08, 2020, 09:57:25 PM »
I'm on board, I like multiplayer but these limitations are a real curve ball.
« Last Edit: April 08, 2020, 09:57:48 PM by Gizgord »

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Improve multiplayer in PB
« Reply #5 on: April 08, 2020, 10:03:16 PM »
On board 1000%.

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: Improve multiplayer in PB
« Reply #6 on: April 09, 2020, 04:04:26 PM »
Can I get pinged when TingThing add splitscreen ?
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Improve multiplayer in PB
« Reply #7 on: April 09, 2020, 04:18:49 PM »
I suggested split screen eons ago. And everyone said it was "too hard," and a bunch of other stuff. So, I don't see splitscreen multiplayer as something that's gonna happen any time soon.

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: Improve multiplayer in PB
« Reply #8 on: April 10, 2020, 02:17:50 PM »
But it must happen, this should be a basic for multiplayer games generally
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

TingThing

  • Admin and Developer
  • Level 20: Nobom
  • *
  • Posts: 1395
  • Creator and Developer of Platform Builder
    • View Profile
    • Platform Builder Home
Re: Improve multiplayer in PB
« Reply #9 on: May 11, 2020, 05:24:36 AM »
Some of these are glitches, not suggestions.


For instance, health and money should work as commands when you use "with player 2." But I noticed that this is not working right when you try to use those variables in brackets. I will need to fix that.

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Improve multiplayer in PB
« Reply #10 on: May 11, 2020, 04:33:18 PM »
Ah! That makes sense as to why some things don't work.