Disclaimer. I’m VERY new at this. I’ve been in game dev many years ago as a character animator, so I know the pipelines and workflows of game dev inside out, but, have never sat and made my own. SO… My very first, super newby question:
I want to be able to click the mouse anywhere on the screen and, depending on what I click on, the character will either walk to the object, a message may appear, an internal function may trigger, etc etc.
What would be the best way to create a base system for this? IE: find out what is clicked is one thing (raycasting I assume). Then, based on what is clicked, perform the task.
First of all thank you both so much. It’s really appreciated.
So, thinking out loud. I can basically give an object properties and, when clicked (Mac/PC first run for my sanity), I can determine if it’s an object that has the ability to be utilised in my game via… “tags”. I’ll look into tags, thank you.
So if it’s an object that is say, a floor object, then the tag says “I’m a floor” so the character will walk to that spot. If it’s a light switch. Then the tags will say “I’m a light switch” and the character can then interact with it.
Would that sound correct? Based on what you’re saying. I’ll take a look further into this. Again, much appreciated.