Multiplayer Support for Combos

Is there any Multiplayer Support for Button Combos? I am working on a fighting game and just figured out my combo code doesn’t work when I use the second player. Any info would help if anyone has any.

5 Likes

not that i know but this would be really useful, @richard (please tell me pinging you doesn’t mean ban like in most discord servers) do you know how to have 2nd player button combos???

3 Likes

Pretty sure you can just use button combos and depending on the sprite something happens

1 Like

haha, you are free to ping me whenever! if this is about the button combo extension, that’s a question for @jwunderl

5 Likes

ok thx, @jwunderl does the combo extension has multiplayer support? and if it doesn’t, is there a way to add multiplayer support?

2 Likes

I wrote this extension about 2 or 3 years before a few devs on the team and I mocked up a demo of online multiplayer in a hackathon, which was a year or two before multiplayer was released – so not currently :slight_smile:. It shouldn’t be particularly hard at all to add support behind a (+) to select another player, I’ll try and make some time to hack that together soon (or if someone is feeling a little ambitious they can give it a shot / I accept prs :slight_smile:)

should just be storing one of https://github.com/jwunderl/pxt-button-combos/blob/master/combos.ts#L38 per player instead of just one total, and swapping https://github.com/jwunderl/pxt-button-combos/blob/master/combos.ts#L79 over to check for each controller as well (& probably make sure that it only checks them if controller is connected, rather than just every time, but that should be simple / just a flag on the controller for that.)

6 Likes

Also, at the same time adding in a statement version of the handler block (i.e. one that you can put inside of another event / looks more like a for loop / if statement) is doable now & would be nice, as that way you could e.g. register events for controller the start screen in on start, and then when player starts the game register different controls at that point, similarly very easy / already supported in the code here https://github.com/jwunderl/pxt-button-combos/blob/master/combos.ts#L281, just need to do it.

4 Likes

@jwunderl Hello! I hope I’m not in trouble for posting on an old post, but I couldn’t figure out how to get access to make a new post. Anyway, I was wondering what I would have to do to update the button combo extension to where there can be more than one player. It’s for a game project I’m making that I’m very passionate about. If you’re able to quickly update/add this feature when you have time too it would be greatly appreciated! Thank you very much. :slight_smile:

1 Like