Hey all -
I’m in the process of designing out a classic point and click interface (mousewheel will transition through Walk, Look, Use, and Talk) and I’m thinking I’m going to have to write a few different scripts to tie things together…I need some pointers in terms of where to look for some of this stuff.
I already have the mouse click to move working with an animated model (the player) complete with locomotion (although it’s pretty rough around the edges).
I know I’ll have to write a quick script to disable the OS mouse cursor and have my own set of GUI elements that transition from state to state. I guess the big topics for me are:
- I need to create a global script that has GUI elements changing along with state changes
- I need to figure out how to cancel player moving if they are using the “Look”, “Use”, “Talk” mouse-click states.
- I need to create a separate script that has variables for “Look”, “Use”, and “Talk” that I would attach to colliders/objects/characters/etc…, so players get the proper feedback when clicking on objects throughout the world. This would be how I handle “hotspots” like an old point and click adventure.
- Figure out how to actually display the information of “Look”, “Use”, and “Talk”. I’m guessing I’ll probably just have to have the variable point to a GUI element that might be referencing text data somewhere?
I’ve been looking around to find some info that would help me out on this stuff. I’ve found some stuff based off of mouseover but not the wheel movement. Would it be better for me to look at a GUI system from the asset store (like EZGUI or NGUI) to sort of streamline this work? Anyone have some reference/resources they could point me towards to get me in the right direction?
Thanks a bunch.