lampe-games / godot-open-rts

Open Source RTS game made in Godot 4
https://lampe-games.itch.io/open-rts
MIT License
555 stars 78 forks source link

WSAD Camera movement #53

Closed Bazsi1224 closed 1 year ago

Bazsi1224 commented 1 year ago

Solves issue #18

Camera movement was moved from _unhandled_input to _process, otherwise the two input was interfering each other, now the mouse input will overwrite the keyboard.

Also _move does not get the mouse position as parameter rather gets directly from viewport

Scony commented 1 year ago

I've reformatted and squashed the changes. Thanks for contributing!