Hi, everyone! I need to implement complicated control system where only one input method is mouse. Here what I need:
- LMB click - click on terrain and chracter move to that point without jittest with animation and higth level of placment accuracy.
- LMB double click - run with the same features as the above.
- LMB hold and drag - move camera according to mouse move to left or rigth, up and down half of screen. If you release mouse camera stays in last position and centered on character only when he starts moving.
- RMB hold and drag - rotate camera around character without lock on it, so when button released camera stays in last rotation position.
- Spacebar pressed - chracter jump with controling heigth and speed withour camera follow him.
During all this operation camare follow the charcter exept 3), 5).
All this operation need to be combined for exp: run, walk and rotate camera.
It’s very importent to implement correct gravety so that the chracter can collide with objects without stucks.
He needs to be able to move on hills and sliding with correct animation when the hell is very heigth.
Please suggest correct way to implement all this. Any information accepteble. Thx for every one. I think it’s very intersting topic for mous of us.