"Mouse button down" only checks if the mouse is pressed or not. You need to use "mouse position X" and "mouse position Y". Like @grishlock said, use the magnitude function.
@NipaDidIt yep, I guess I didn't clarify. Mouse down save point, then calculate from that save point to mouse position X Y . so its just simply magnitude? No equation?
@skipnice said:
NipaDidIt yep, I guess I didn't clarify. Mouse down save point, then calculate from that save point to mouse position X Y . so its just simply magnitude? No equation?
Awesome thanks guys!
Rule - When mouse button is down
--Change self.MouseTouchDownX to mouse position x
--Change self.MouseTouchDownY to mouse position y
The distance ("radius"?) from this 'touch down' point - to where the mouse currently is - would be:
magnitude(MouseTouchDownX - mouse position x, MouseTouchDownY - mouse position y)
Comments
From mouse button down to where ?
You can use the magnitude function to get the distance between two points.
"Mouse button down" only checks if the mouse is pressed or not. You need to use "mouse position X" and "mouse position Y". Like @grishlock said, use the magnitude function.
@NipaDidIt yep, I guess I didn't clarify. Mouse down save point, then calculate from that save point to mouse position X Y . so its just simply magnitude? No equation?
Awesome thanks guys!
Rule - When mouse button is down
--Change self.MouseTouchDownX to mouse position x
--Change self.MouseTouchDownY to mouse position y
The distance ("radius"?) from this 'touch down' point - to where the mouse currently is - would be:
magnitude(MouseTouchDownX - mouse position x, MouseTouchDownY - mouse position y)
@Socks haha I keep saying radius cuz im looking at a circle lolol, thank you for the equation!