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:
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
for player 2
money + 1
if money > 100
{
money - 100
lives + 1
}
For example with keys and physics:
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:
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:
spawn enemy 1, player
Will be cool if we can select in which player it spawns:
spawn enemy 1, player2
Hope this get added soon for 8.0