Character shakes on LH mouse button click

Started by steptoe, Sat 17/12/2011 18:57:54

Previous topic - Next topic

steptoe

Hi

This is more of an annoyance than a major issue.

I have been deciding how to have my character move.

So, I changed the mouse graphic to a crosshair and have player move by mouse X.

I have noticed that if I happen to click the LH mouse button the player shakes for a moment.

RH mouse click ok.

Can you help stop this annoyance?

EDIT: Decided on left mouse shoot and it has cured the DT shakes.

Also, just as I'm here, I need to change cursor graphic when over a GUI (grounds) and has one button (Breadme).

Code: ags

function repeatedly_execute_always()
{
  GUIControl *gcat = GUIControl.GetAtScreenXY(mouse.x, mouse.y);
  if ((gcat == null) || (gcat.AsButton == null)) mouse.UseDefaultGraphic();
  else mouse.UseModeGraphic(eModeHand);
}


The cursor mouse graphic (walk/interact) is 233 and needs to change to 26 whilst over GUI button and revert back to 233 when off GUI button.

cheers

steptoe




SMF spam blocked by CleanTalk