If you use this in one of your projects, put a link in the comments! I'd love to see what people can do with this. Forum for questions/help/bugs: https://scratch.mit.edu/discuss/topic/205693/ If you can't scroll down, this is also is in a comment inside. Please read the notes and credits if you haven't! Note: first you must create three variables for all sprites. "current_menu", "first_in_line_id" and "line_number". Welcome to my menu system! To create a menu, first give this sprite a costume for each entry (button in you menu). Then drag the "create menu" block into the script area, enter the menu name, and click on it once. It should create a list that looks a bit like "SUPERL2_MENU-[MENU-NAME]". Delete the create block. You do not need to use it at any time any more. Next add a list entry with the name of each of the costumes you want to display in that particular menu. Congratulations! Your menu has been set up! Please read all the other comments to learn how to open your menu and add commands for each entry. Remember you can make scripts that edit you menu list, too! This means that if you're making a game where you unlock things, if you unlock something, you can add the unlocked item to the list! SOMETIMES, IF YOU MOVE ONE OF THE ENTRIES INSTEAD OF CLICKING IT, IT STUFFS THE SYSTEM UP. THIS SHOULD ONLY HAPPEN IF YOU'RE IN THE EDITOR. IF THIS HAPPENS, CLOSE THE MENU, AND HIDE AND SHOW THIS SPRITE. IT SHOULD FIX THE PROBLEM.
To use in your own project, copy the "MENU_SYSTEM" sprite into your backpack. To see this used in a game, look at https://scratch.mit.edu/projects/115024967 Uses: 2 all-sprite variables, 6 variables in total, and a list for each menu you create. Please give credit if you use this/any ideas from this. I learnt how to give clones unique ID numbers from the Scratch Wiki. https://wiki.scratch.mit.edu/wiki/Advanced_Clone_Usage