Platform Builder Forums

Main => Suggestions => Topic started by: Antikore on April 04, 2020, 05:56:01 PM

Title: Improve multiplayer in PB
Post by: Antikore 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
Title: Re: Improve multiplayer in PB
Post by: CGM 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.
Title: Re: Improve multiplayer in PB
Post by: Antikore 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.
Title: Re: Improve multiplayer in PB
Post by: CGM on April 04, 2020, 06:29:54 PM
Exactly my point.
Title: Re: Improve multiplayer in PB
Post by: Gizgord on April 08, 2020, 09:57:25 PM
I'm on board, I like multiplayer but these limitations are a real curve ball.
Title: Re: Improve multiplayer in PB
Post by: CGM on April 08, 2020, 10:03:16 PM
On board 1000%.
Title: Re: Improve multiplayer in PB
Post by: War on April 09, 2020, 04:04:26 PM
Can I get pinged when TingThing add splitscreen ?
Title: Re: Improve multiplayer in PB
Post by: CGM 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.
Title: Re: Improve multiplayer in PB
Post by: War on April 10, 2020, 02:17:50 PM
But it must happen, this should be a basic for multiplayer games generally
Title: Re: Improve multiplayer in PB
Post by: TingThing 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.
Title: Re: Improve multiplayer in PB
Post by: CGM on May 11, 2020, 04:33:18 PM
Ah! That makes sense as to why some things don't work.