SRL Archive - OSR Help

How to Add integers to MousePos


Paradoxium

2013-05-28 11:46:28

Hey guys so I am trying to add integers to a mouse position.

For Example:


GetMousePos(x,y);
MoveMouse(x+20,y);

How can I actually do this lol

Thanks!

Peanuts

2013-05-28 11:54:33

MMouse(x, y, 20, 20);

Edit: Sorry.. once i posted i realised you are a JRL.. This isn't what you are asking.. lol.

x[Warrior]x3500

2013-05-28 11:56:27

I dont see a reason why u cant do x+20 like u did above.
Edit: but if u really cant… just use an integer variable to hold the value of x+20, then use that variable instead

Ian

2013-05-28 11:58:36


MMouse((x + 20), y, 0, 0);


From: x[Warrior]x3500
I dont see a reason why u cant do x+20 like u did above.
Edit: but if u really cant… just use an integer variable to hold the value of x+20, then use that variable instead


He forgot to bracket the math

Paradoxium

2013-05-28 14:17:49

lol yeah, I realized that what I wrote works fine…I'm an idiot. Thanks guys!