Like this Mr. Flibble?
1. Create an object named Cursor.
Code: ags
I think this would work..... Although, it may cause jerky movement. To adjust the sensitivity you would just have to change a few numbers.
I may have overcomplicated it though.
Any thoughts?
1. Create an object named Cursor.
Under repetedly execute.
{
if (puzzle)
{
Cursor.Graphic = mouse.GetModeGraphic(mouse.Mode);
Cursor.x = mouse.x;
Cursor.y = mouse.y;
Cursor.Visible = true;
mouse.Visible = false;
puzzle = false;
}
if (mouse.x >= Cursor.X +2)
{
Cursor.X += 1;
mouse.SetPosition(Cursor.X, mouse.y);
}
if (mouse.y <= Cursor.Y -2)
{
Cursor.Y-1;
mouse.SetPosition(mouse.x, Cursor.Y);
}
if (mouse.y >= Cursor.Y +2)
{
Cursor.Y+1;
mouse.SetPosition(mouse.x, Cursor.Y);
}
if (mouse.x <= Cursor.X -2)
{
Cursor.X -1;
mouse.SetPosition(Cursor.X, mouse.y);
}
}
I think this would work..... Although, it may cause jerky movement. To adjust the sensitivity you would just have to change a few numbers.
I may have overcomplicated it though.
Any thoughts?