Drag cursor to the edges of the screen to pan the camera, left click to select target and location, and right click to deselect

GitHub

A couple of the things I found most interesting to add were the camera controls, the outline around the selected character, and the "jumping." 

For the camera, I wanted to have something isometric and control similar to a MOBA/RTS. I found a way to reference the screen's height and determine if the cursor moved past a certain point. With that, I was able to move the camera's transform in the direction of the cursor 

For the outline, I found an asset on the asset store that renders the outline on a single object (was going to create a shader, but realized that's not what I was looking for) and I programmed it to turn on and off whenever a character was selected/deselected. It added a nice level of visual polish, I think.

The other main thing I added was jumping using NavMeshLinks. I really wanted to figure out how to have the characters jump, so I did some looking online and found a way to do that. Specifically, I put NavMeshLinks in certain areas to make jumpable paths, and I also assigned a script (from Unity Technology's NavMeshComponents repository on GitHub) to the player characters that changed the trajectory of their jump (to make them look more like they're actually jumping). It's still a little finicky but it gets the job done.

StatusReleased
PlatformsHTML5
Authorpapercdisc
Made withUnity

Download

Download
Unity_NWFM4bfSCj.mp4 6.9 MB

Leave a comment

Log in with itch.io to leave a comment.