Sorry for the weird wording in the title. I'm trying to make a specific thing work with AC, and would like some guidance.
1. The game is 2D, direct controlled, using keyboard/ controller as the input method. I'm using the Walking Dead template as of now to make this work. I've set it up in such a way that when near a hotspot, I press "E" to open up the interaction wheel, and then I press either left arrow for "talk", right arrow for "look at", and down arrow for "use". I'd like to set it up so that up arrow activates the inventory interaction. The player will only carry one inventory item at a time, so this needs to be only one key and icon.
The existing inventory menu doesn't have the "alternative input button" field where I can enter this. I'd also like to add another such menu (to "think about" stuff) but new buttons don't have that field either. Any tips?
2. Also, at times there are two hotspots above/ below or next to each other. (For example the car and the shop sign above are both hotspots) How do I allow the player to choose/ select one of them?
I'm still trying to figure this out on my own, but don't seem to be making much progress. It'd be great if someone could point me in the right direction
Thanks!
Comments
AC.PlayerMenus.SimulateClick ("MyMenu", "MyInventoryBox");
Is your "think about stuff" mechanic going to use another inventory, or another cursor/verb icon?
2. Set the "Hotspots in vicinity" to "Cycle Multiple", and you'll then be able to define CycleHotspotsLeft / CycleHotspotsRight input buttons to cycle through Hotspots when multiple are detected. See the "Player-vicinity detection" chapter of the Manual for more.
New icons can be added in the Cursor Manager. Once defined, they can then be selected in Interaction elements.
Any custom Action needs to have the actual "perform" code (in this case, the SimulateClick call) in it's Run function. The code you posted shows it in ShowGUI, which - as the comment shows - is used for the actual user-interface in the Inspector / ActionList Editor.
A tutorial on writing custom Actions can be found here.
Did you import the complete package? What version is shown when you go to "Adventure Creator -> About" in the top toolbar?