# Try My Game!

**URL:** https://forum.makecode.com/t/try-my-game/37000
**Category:** Show & Tell
**Tags:** game
**Created:** [May 30, 2025, 2:27pm UTC](https://forum.makecode.com/t/try-my-game/37000 "2025-05-30T14:27:06Z")
**Posts on this page:** 16
**Page:** 2

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [November 1, 2025, 8:19pm UTC](https://forum.makecode.com/t/try-my-game/37000/26 "2025-11-01T20:19:45Z")

</div>

This is a simple test (made on a phone):

> **[test](https://arcade.makecode.com/S63044-87571-51969-85211)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [November 7, 2025, 5:28am UTC](https://forum.makecode.com/t/try-my-game/37000/28 "2025-11-07T05:28:49Z")

</div>

@WoofWoof, i created a class to handle the menu easily. Of course, you can access the miniMenu variable inside it and do whatever you want with that, but the whole purpose of the class is to simplify some of the variables / functions. I made it have 4 variables that can be changed and range from 0 - 255

> **[test](https://arcade.makecode.com/S63044-87571-51969-85211)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [November 20, 2025, 5:19am UTC](https://forum.makecode.com/t/try-my-game/37000/29 "2025-11-20T05:19:59Z")

</div>

@WoofWoof, here is the finished test of what i was meaning to do:

> **[test](https://arcade.makecode.com/S63044-87571-51969-85211)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

It took too long… but its so easy too use now!!

---

<div class="post-metadata">

### Author: ![Iro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/iro/32/34749_2.png) [@Iro](https://forum.makecode.com/u/Iro)
#### Post date: [November 20, 2025, 4:20pm UTC](https://forum.makecode.com/t/try-my-game/37000/30 "2025-11-20T16:20:40Z")

</div>

Great game! also, can you please tell me how you made the moving platforms?

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [November 21, 2025, 3:36am UTC](https://forum.makecode.com/t/try-my-game/37000/31 "2025-11-21T03:36:09Z")

</div>

sadly, I don’t remember but you could probably ask someone else, or attempt to understand it. I could also look over it to remember what it does

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [November 21, 2025, 3:50am UTC](https://forum.makecode.com/t/try-my-game/37000/32 "2025-11-21T03:50:57Z")

</div>

@WoofWoof, can you help me make it automatically choose positions for the menus, so that it actually looks like a tree? I want it so that the top of a sub menu is to the right of the selected item of the menu that opened it, but so that its touching. I cant figure out what to do if the menu reaches the bottom of the screen and goes past it, so if you have any ideas can you explain them?

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [November 21, 2025, 4:54am UTC](https://forum.makecode.com/t/try-my-game/37000/33 "2025-11-21T04:54:41Z")

</div>

I had to figure out this exact thing when I made my mini menu cursor extension. There is a variable attached to menus called “scroll” or something like that and to get the y position of any menu element you do “menu.top - menu.scroll + the width of the title element” and then you add the height of every menu element up to the one you want and bam, you have the y position of the menu item.  
I don’t remember the actual function names, but I know there is some sort of scroll variable and a function for getting the height of a given menu element.

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [November 21, 2025, 4:37pm UTC](https://forum.makecode.com/t/try-my-game/37000/34 "2025-11-21T16:37:42Z")

</div>

does each item not have the same height?

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [November 21, 2025, 7:15pm UTC](https://forum.makecode.com/t/try-my-game/37000/35 "2025-11-21T19:15:12Z")

</div>

If you are trying to create something that other people can use, you have to take into account that you can put images into the items, which changes their height. (You can also change the font sizes technically)

---

<div class="post-metadata">

### Author: ![Allegory\_Cheese](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/allegory_cheese/32/31845_2.png) [@Allegory\_Cheese](https://forum.makecode.com/u/Allegory_Cheese)
#### Post date: [November 26, 2025, 4:40am UTC](https://forum.makecode.com/t/try-my-game/37000/36 "2025-11-26T04:40:46Z")

</div>

oh you made this in js… this makes it more impressive

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [November 26, 2025, 10:39pm UTC](https://forum.makecode.com/t/try-my-game/37000/37 "2025-11-26T22:39:10Z")

</div>

can you send me an example project that gets the position of a menu item, or something you’ve already built that does that

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [November 26, 2025, 10:39pm UTC](https://forum.makecode.com/t/try-my-game/37000/38 "2025-11-26T22:39:47Z")

</div>

i use javascript because it allows things like classes or switch statement

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [November 26, 2025, 10:47pm UTC](https://forum.makecode.com/t/try-my-game/37000/39 "2025-11-26T22:47:51Z")

</div>

@Iro, here is what the platforms do:

> **[some platformer platforms explained](https://arcade.makecode.com/S44545-72593-22592-17231)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

its in the update function

---

<div class="post-metadata">

### Author: ![Allegory\_Cheese](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/allegory_cheese/32/31845_2.png) [@Allegory\_Cheese](https://forum.makecode.com/u/Allegory_Cheese)
#### Post date: [November 28, 2025, 3:41am UTC](https://forum.makecode.com/t/try-my-game/37000/40 "2025-11-28T03:41:18Z")

</div>

These levels make me want to expire with their difficulty

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [November 28, 2025, 3:54am UTC](https://forum.makecode.com/t/try-my-game/37000/41 "2025-11-28T03:54:20Z")

</div>

Yes. I have made an extension. [WoofWoofCodes/pxt-mini-menu-cursor](https://github.com/WoofWoofCodes/pxt-mini-menu-cursor)  
From what I remember, the code for finding the Y level is sorta used in stages that are split up, so it might be a bit all over the place. The general code for this starts at line 28 of the [miniMenuCursor.ts](https://github.com/WoofWoofCodes/pxt-mini-menu-cursor/blob/master/miniMenuCursor.ts) file. I also never directly find the Y value of the elements. Instead, I find out which element should be selected by increasing that menuPos variable until it is larger than the Y value of the cursor. After a bunch of setup to find the Y position where the items actually start, this code around line 72 loops through each one to add up the height:

 ![IMG_0883](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/9/0/90e353056e9fe06c3e71b600bf92b4d424e7a1ca.jpeg)  
But this is just the case for the normal single column menus. My code accounts for every type of menu that can be made! Feel free to copy any and all of my code, just give credit in a comment somewhere if you do!

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [November 30, 2025, 4:16am UTC](https://forum.makecode.com/t/try-my-game/37000/42 "2025-11-30T04:16:12Z")

</div>

I think the function gets an item depending on the cursors position, by getting every items position and checking if it’s close. what I want is getting an items position, which can be used with that?

[Previous page](https://forum.makecode.com/t/try-my-game/37000.md?page=1)
