I’m having an issue with the Mini Menus Extension, I’m not the strongest programmer so I don’t understand the logic behind getting the menu to select what I want it to Select i.e. I want to make a Level Select menu. I put in the titles and whatnot, but how to tie in the level name with the actual Level it’s self.
Heres the Link for the Extension i’m trying to use arcade-mini-menu.
Here’s a link to my Game MonkeyBoy (kind of like paperboy) MonkeyBoy
Here’s a quick sample I came up with. First, you want to set a menu with the options for your levels, you can name those however you want (you’ve already done with this step)
After that, you need to add the <menu> on A pressed with <selection> <selectedIndex>
block from the menu extension (see below). Here, you define what happens when you press a button while in the menu (in this case the A button but you can set it to be whatever you want)
Once that’s done, inside of said block you have to write some code using the logic blocks. You can get which index we’re on when we press the button with the selectedIndex
variable (you can drag it out of the block). For example, if the ‘Level 1’ option is selected, the index is 0 (because the index starts at 0 and it counts up), so for ‘Level 2’ the index is 1.
So in the first logic block, you set the tilemap for the first level, in the second for the second level, you get the idea. At the end just put a close menu
block because you probably don’t want the menu to be open when you’re playing.
And that’s it! Hope this helps, if you need more help just ask!
Here’s the link to the project so you can see it for yourself if you need extra clarification.
Thank you, it helped. It threw off the spawn point for the next level selects but i’m sure I can fix that with a little Logic. Thank you very much!