Please help me with the steps to make a levels menu, which is presented in the form of photos on the screen. One photo-level a time, clicking right-left buttons you may switch to the next and previous levels in line.
Thanks a lot for your help
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
You can do this with the Inventory system, by creating an Inventory item to represent each photo/level, and then displaying them in a Menu.
In the Inventory Manager, go to the Categories tab and create two Categories - Default and Levels. Any existing Items will be moved to the Default category.
Create your levels as new Inventory items - setting their graphics to the photos, and placing them in the Levels category. Check Carry on start? so that the Player possesses them when the game begins.
For each item, create a "Standard Use" interaction that runs the Scene: Switch Action to open the intended scene.
Then, go to the Menu Manager and create a new "Level selection" Menu, styled to your suiting, and give it an InventoryBox element, set to display items only in the Levels category.
To show only one at a time, set the Max number of slots to 1, and then use Button elements, set to Offset Element Slot to offset this InventoryBox element previous/next by 1. You can copy the default Inventory menu and shrink the Items element down to 1 if you prefer, as this already includes the ShiftLeft/Right buttons.
You'll also need to update your existing Inventory menu to have it only display items in the Default category, so that the level items don't show up.
If you have issues along the way, share details and screenshots and I'll try to spot what's wrong.
Will I be able to lock and unlock levels?
While scripting would also be an option, you could create "locked" equivalents of each level item, have them added on start instead, and then use the Inventory: Add or remove Action's Replace method to swap out the locked item for its unlocked one.