Hello everyone,
I was looking to get some help with click-to-move, top-down Diablo/Torchlight style gaming. I come from a modeling/artistic background, so a lot of the code is jibberish to me. But I'm trying, and I'm learning a lot.
I currently have a great setup going so far, but it lacks quite a bit of the finishing touches - and I've tried a lot of the tutorials and thread reading here and have found very little. Either I don't know what to look for, or I'm not sure what I'm reading.
So far my setup is a character controller FSM and camera FSM setup similar to the ClickToMove demo provided by Playmaker. I have walk, run, and idle animations, all working perfectly. I'm also using the Construction worker 3rd person model as my character for the time being.
1. Keeping my character on the ground:
Currently my character walks great on a flat plane but when I had height whatsoever to the terrain, he tends to walk directly to the click point, even if that means walking "through the air."
I do not have gravity set up and I'm not using a RigidBody, mainly because I'm not sure how to proceed getting this fixed.
How do I remedy this issue? It's seem rather common on these forums by doing a simple search but the answers are either not working, or are untenable for my purposes.
2. ClicktoMove continuously while holding mouse key:
The character moves great when I click, but when I hold the mouse key, it only tracks to the last actual click. As noted in Diablo games, if I hold the key it should follow the cursor if I hold the key down.
How do I add that?
3. Moving around and/or colliding with objects:
When moving my character behind an object, the character tends to walk directly
through the object even though there is a Character Controller and a Collider on the object (in this case a simple cube).
I've read a bit about this, in that it's pretty difficult to achieve, but I want to.
a. How do I get the character to collide with objects?
b. How do I get the character to see the path around an object?
I hate to be a bother to the Playmaker community, but I'll eventually get better at this.
I of course appreciate any help on these issues. Thank you for your time.