# Multiplayer Support for Combos

**URL:** https://forum.makecode.com/t/multiplayer-support-for-combos/23855
**Category:** Help
**Tags:** extension
**Created:** [November 2, 2023, 10:21pm UTC](https://forum.makecode.com/t/multiplayer-support-for-combos/23855 "2023-11-02T22:21:25Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Sp1005h](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sp1005h/32/13169_2.png) [@Sp1005h](https://forum.makecode.com/u/Sp1005h)
#### Post date: [November 2, 2023, 10:21pm UTC](https://forum.makecode.com/t/multiplayer-support-for-combos/23855/1 "2023-11-02T22:21:25Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Mega0star01](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mega0star01/32/14784_2.png) [@Mega0star01](https://forum.makecode.com/u/Mega0star01)
#### Post date: [November 2, 2023, 11:19pm UTC](https://forum.makecode.com/t/multiplayer-support-for-combos/23855/2 "2023-11-02T23:19:08Z")

</div>

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???

---

<div class="post-metadata">

### Author: ![DangerNoodle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dangernoodle/32/14797_2.png) [@DangerNoodle](https://forum.makecode.com/u/DangerNoodle)
#### Post date: [November 3, 2023, 4:07pm UTC](https://forum.makecode.com/t/multiplayer-support-for-combos/23855/3 "2023-11-03T16:07:29Z")

</div>

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

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [November 3, 2023, 4:31pm UTC](https://forum.makecode.com/t/multiplayer-support-for-combos/23855/4 "2023-11-03T16:31:54Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Mega0star01](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mega0star01/32/14784_2.png) [@Mega0star01](https://forum.makecode.com/u/Mega0star01)
#### Post date: [November 3, 2023, 4:40pm UTC](https://forum.makecode.com/t/multiplayer-support-for-combos/23855/5 "2023-11-03T16:40:48Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [November 3, 2023, 5:34pm UTC](https://forum.makecode.com/t/multiplayer-support-for-combos/23855/6 "2023-11-03T17:34:53Z")

</div>

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 🙂. 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 🙂)

should just be storing one of [https://github.com/jwunderl/pxt-button-combos/blob/master/combos.ts#L38](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](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.)

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [November 3, 2023, 5:59pm UTC](https://forum.makecode.com/t/multiplayer-support-for-combos/23855/7 "2023-11-03T17:59:02Z")

</div>

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](https://github.com/jwunderl/pxt-button-combos/blob/master/combos.ts#L281), just need to do it.

---

<div class="post-metadata">

### Author: ![VerifiedCookie](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/verifiedcookie/32/18875_2.png) [@VerifiedCookie](https://forum.makecode.com/u/VerifiedCookie)
#### Post date: [December 19, 2024, 11:29pm UTC](https://forum.makecode.com/t/multiplayer-support-for-combos/23855/8 "2024-12-19T23:29:36Z")

</div>

@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. 🙂
