Try My Game!

Im thinking of adding a level editor to the menu I’m creating

2 Likes

Boy am I happy to know you’re doing this in JavaScript, as this most likely wouldn’t be possible in blocks. Specifically the slider thing. That also sounds like a cool idea I might want to use sometime, so I’m gonna make a small mock up of how I would do it. I’ll try to add comments to explain what’s happening!

1 Like

Here you go:

I made the volume wrap around, but you can easily change that in your code if you don’t want that.

This is awesome, it feels like a real xbox game

1 Like

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

2 Likes

@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

2 Likes

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

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

2 Likes

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

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

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

1 Like

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.

does each item not have the same height?

1 Like