Search found 1 match

by JoeySalads
Sat Oct 15, 2016 4:01 am
Forum: Support and Development
Topic: How to move object at the same speed
Replies: 4
Views: 3204

Re: How to move object at the same speed

It's probably best that you make those variables local, but I'll leave them as global in case you actually use them elsewhere. What this code does is convert the WASD movement to an angle and uses the same formula as the mouse method to calculate the horizontal and vertical speed. direction = 0 angl...