Coding good character movement

Kia ora everyone,

I’m trying to develop a good character-moves-with-camera rig, and have the start of one at (remixable).

There’s quite a few things to iron out:

  1. It only works with arrow keys currently, but would like to get it working with mouse too.
  2. Because the character is a child of the camera, and I’m taking over keyboard controls, it doesn’t respect the physical geography, and can go under the landscape. (or is this a feature? :laughing:)
  3. Pressing multiple keys at the same time can result in the character losing the correct mapping of direction to keys.

This project is remixable, so feel free to add your fixes and update in this post.

Many thanks,
Geoff @ TechLeap