# Making a battle royal

**URL:** https://forum.makecode.com/t/making-a-battle-royal/40334
**Category:** Arcade
**Tags:** game
**Created:** [November 9, 2025, 11:01pm UTC](https://forum.makecode.com/t/making-a-battle-royal/40334 "2025-11-09T23:01:38Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![king\_bob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/king_bob/32/35049_2.png) [@king\_bob](https://forum.makecode.com/u/king_bob)
#### Post date: [November 9, 2025, 11:01pm UTC](https://forum.makecode.com/t/making-a-battle-royal/40334/1 "2025-11-09T23:01:38Z")

</div>

so I’m making an battle royal like Fortnite but in makecode. so basically I was wondering if anyone wanted to help like the assets and stuff.

---

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [November 10, 2025, 3:21am UTC](https://forum.makecode.com/t/making-a-battle-royal/40334/2 "2025-11-10T03:21:13Z")

</div>

some clarifying questions

1. Is the game multiplayer or is it bots
2. if bots how many

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [November 10, 2025, 3:23am UTC](https://forum.makecode.com/t/making-a-battle-royal/40334/3 "2025-11-10T03:23:17Z")

</div>

I can help, if you need something in particular! Do you think the game’s going to be 2D or 3D?

---

<div class="post-metadata">

### Author: ![king\_bob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/king_bob/32/35049_2.png) [@king\_bob](https://forum.makecode.com/u/king_bob)
#### Post date: [November 10, 2025, 6:06pm UTC](https://forum.makecode.com/t/making-a-battle-royal/40334/4 "2025-11-10T18:06:20Z")

</div>

for some reason the codes not working and the 1st player can no longer shoot and i cant pick stuff up for the second player

---

<div class="post-metadata">

### Author: ![king\_bob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/king_bob/32/35049_2.png) [@king\_bob](https://forum.makecode.com/u/king_bob)
#### Post date: [November 10, 2025, 6:11pm UTC](https://forum.makecode.com/t/making-a-battle-royal/40334/5 "2025-11-10T18:11:53Z")

</div>

it gonna be multiplayer

---

<div class="post-metadata">

### Author: ![king\_bob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/king_bob/32/35049_2.png) [@king\_bob](https://forum.makecode.com/u/king_bob)
#### Post date: [November 10, 2025, 6:11pm UTC](https://forum.makecode.com/t/making-a-battle-royal/40334/6 "2025-11-10T18:11:56Z")

</div>

its gonna be 2d I’m almost done with the first version

---

<div class="post-metadata">

### Author: ![Ima.notarobot](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ima.notarobot/32/26551_2.png) [@Ima.notarobot](https://forum.makecode.com/u/Ima.notarobot)
#### Post date: [November 11, 2025, 7:02pm UTC](https://forum.makecode.com/t/making-a-battle-royal/40334/7 "2025-11-11T19:02:39Z")

</div>

Share the link and I can help with this error!

---

<div class="post-metadata">

### Author: ![king\_bob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/king_bob/32/35049_2.png) [@king\_bob](https://forum.makecode.com/u/king_bob)
#### Post date: [November 11, 2025, 10:19pm UTC](https://forum.makecode.com/t/making-a-battle-royal/40334/8 "2025-11-11T22:19:04Z")

</div>

> **[shoot scape 1.2.0 og](https://arcade.makecode.com/S06737-80291-19200-43523)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![Ima.notarobot](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ima.notarobot/32/26551_2.png) [@Ima.notarobot](https://forum.makecode.com/u/Ima.notarobot)
#### Post date: [November 12, 2025, 5:53pm UTC](https://forum.makecode.com/t/making-a-battle-royal/40334/9 "2025-11-12T17:53:31Z")

</div>

I think your error is here: there are no variables that set “Gun using” to any number. A simple fix is to make it when you overlap with a weapon it sets it to that variable. My guess is you forgot to add it. 2:

Both players share the same Gun using variables. So if I was player two and switched to a mega blaster, so would player one.

If you would like some example code, A little while ago when I first started Make Code I created this: A shooter game called arthropods. [Here](https://arcade.makecode.com/S70582-25615-53197-87138) You can take any code you like, Our code was Kind of similar.

Also recently I learned to use arrays, which would have been a big help with this project. If you want I can give you adam\_F’s tutorial.  
Hope this helps and If you need more ask me! 😃

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/f/7/f7c24e4e517deb78d39d103d7443125fd950e2a6.png)

---

<div class="post-metadata">

### Author: ![king\_bob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/king_bob/32/35049_2.png) [@king\_bob](https://forum.makecode.com/u/king_bob)
#### Post date: [November 12, 2025, 5:59pm UTC](https://forum.makecode.com/t/making-a-battle-royal/40334/10 "2025-11-12T17:59:35Z")

</div>

yea can u help me with the arrays cuz I have no idea how

---

<div class="post-metadata">

### Author: ![king\_bob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/king_bob/32/35049_2.png) [@king\_bob](https://forum.makecode.com/u/king_bob)
#### Post date: [November 24, 2025, 12:03am UTC](https://forum.makecode.com/t/making-a-battle-royal/40334/11 "2025-11-24T00:03:38Z")

</div>

hey @Ima.notarobot ive been busy so i havent been working on this gme but looked at the code and it does call the variable gun using
