so while the keyboard can have all the fun for the masses by moving the player - we look at mouse positioning.
we create a new project & new 'Block' class with a simple setup. we then import the kha 'Mouse' class & make sure its setup within our 'new' function.
we lastly create a 'onMouseMove' function which will handle the major points of the movement.
source code:
https://github.com/lewislepton/kha-tutorial-series
SUPPORT ON PATREON FROM AS LITTLE AS $1:
https://patreon.com/lewislepton
intro & outro music is from this EP:
https://lewislepton.bandcamp.com/album/coat-noise-ep
like, share & subscribe to stay up to date.
https://lewislepton.com
https://patreon.com/lewislepton
https://twitter.com/lewislepton
https://facebook.com/lewislepton
https://lewislepton.bandcamp.com
https://soundcloud.com/lewislepton
https://github.com/lewislepton