RTS Framework

Hi,

here im going to share with you my progress in developing a RTS game, and here im going to share with you my camera script for you to use, share, give criticism, feedback, sugestions on where i can improve and so on. So this is the first module that i have finished.

thanks

9164444–1275500–CAMERA.cs (7.87 KB)

Input.GetKey("w")

Please use keycodes:

Input.GetKey(KeyCode.W)

Requesting the actual printed letter by using “w” will make this input handling largely incompatible with keyboards of locales other than your own.

For example on a french keyboard the WASD controls would be rather awkward as you can see:

Also, if I remember correctly, if you check for “w” but the user holds down Shift at the same time, this key will not register. Meaning you’d have to also check for “W”.

Hi thanks for the input, I did the changes, some improvements, and bug fixes. The updated code is up.