So I’m trying to make a radial menu for selecting picked up weapons in my game. I have already made a menu pop up when a key is pressed, with icons working properly. Each segment of the menu is a separate object.
What I want is to able to pick up weapons and add them to an inventory and display them in order around the radial menu (clockwise). I must also be able to discard specific weapons and the display would change accordingly (gaps being filled by weapons further along the menu). Sort of like Ratchet & Clank
or RDR.
I was thinking of a variable for total number of weapons in inventory, defining which inventory segment should display each added weapon. I’d have to store that data though, so I can use it later to remove weapons and change the order.
It would be great if any of you superbrains could help me out. Thanks!
As for swapping items over, add a button to do that, where the player clicks it, and then selects the 2 items to swap. You do that to the inventory list, and then refresh the display.
The “RWM” is the first segment of the menu. There are eight, and each segment needs to display the corresponding item on the array. I’ve got an icon object, and I will change it’s animation to the appropriate weapon image.
Are there any expressions to find the string of a specific index of the array? Something equivalent to " string of (index number) of (array variable)". I installed array tools but it doesn’t seem to have an expression to get a specific string (or number) from its index. It has an expression to get an index from a string, but that is useless for what I’m trying to achieve.
Sorry for being a dumbbrain. I appreciate your help.