#Vector2 and UDim Movement help

1 messages · Page 1 of 1 (latest)

coarse elbow
#

So currently I am working on a movement system using a surface GUI, the controls are
W = -y
A = -x
S = +y
D = +x

Going either direction is 4 pixels per 0.01 seconds, if I go diagonal, the speed goes from 4 to 2.82842708 (the magnitude of the movement)
But if I hold W and S, then hold A or D, the speed seems to double. If anyone can help it'd be greatly appreciated

#

The Vector2 is used to determine the movement of the image, then UDim is to modify

slate helm
#

really shouldn't put while loops in inputbegan like that, when you press 2 keys at once, that while loop will be running twice, therefore double movement speed

coarse elbow
#

Yeah I found a different way to check with the Heartbeat