SRL Archive - Discussions and Debates

Possible Mouse Function...?


'Toxin

2012-03-16 03:45:46

Alright so I've been thinking… If we want to move the mouse from point a to point b, namely for our case it would be where the mouse was last clicked, to where the mouse is going to be clicked(the x,y location of the MMouse function)… Then, instead of representing the direction in a direct line, can we not use mathematical functions such as simple trigonometric functions as a representation of the distance between two points?

Realistically I think this can happen, I am not sure however if Simba could support this… Thoughts, anyone know anything about this ?

If so, what would be the math include for Simba so I could try this out because I want to see if it works and we could have it in the include.

Daniel

2012-03-16 06:20:12

You said distance so that confused the hell out of me.

Are you referring to Euclidean distance? Sqrt( [x1 - x2]^2 + [y1 - y2]^2 … ) ? If so, you can just use the Simba method Distance for the distance between two points.

Jagex_Fagex

2012-03-16 07:24:58

I'm not sure i understand what you are saying, but the mouse doesn't just move in a straight line. it uses splines? Benland100, correct me? He's the master of the mouse AFAIK.

Flight

2012-03-16 07:33:55

Yeah I'm a bit confused about this as well, sorry. :/ The mouse is quite dynamic in the spline already.

'Toxin

2012-03-16 09:39:52

From: Flight
Yeah I'm a bit confused about this as well, sorry. :/ The mouse is quite dynamic in the spline already.


I don't really see any dynamic movement from the mouse… Most movements are fairly static, at least to my human eye anyway.

Daniel has what I am talking about here, I didn't mean distance. My bad.

Flight

2012-03-16 10:47:17

WindMouse is where you can adjust the wind/gravity of the mouse spline. You can see in this post that even the standard MMouse already has human-like movements.

Sin

2012-03-16 14:50:53

HumanMMouse is where it's at <3
But Flight, thanks for WindMouse, I never knew of it :o

Gu3st...

2012-03-16 18:56:07

From: Sin
HumanMMouse is where it's at <3
But Flight, thanks for WindMouse, I never knew of it :o
MMouse uses windmouse