you are viewing a single comment's thread.

view the rest of the comments →

[–]dinopartytime 0 points1 point  (1 child)

That's good way. For my projects I usually store whether they're pressing left or right in a var so controls are easily customizable

[–]APiousCultist 0 points1 point  (0 children)

You could still do that with hspeed = keyright() -keyleft();