See subject. I put the code on Interact as I want it to be kind of like dragging the character around.
The code:
Code: ags
Of course the game crashes:
Also the mouse cursor won't move when the key is pressed, and the character doesn't move until after I let go of the
The code:
{
cBall.TurnBeforeWalking = false;
while (Mouse.IsButtonDown(eMouseLeft)) {
if (cBall.y <= 115) {
cBall.StopMoving();
}
else if (cBall.y >= 125) {
cBall.StopMoving();
}
else {
cBall.Walk(160, mouse.y, eAnywhere);
}
}
}
Of course the game crashes:
QuoteError: run_text_script1: error -6 running function 'cBall_Interact':
Error: Script appears to be hung (150001 while loop iterations without an update) in "GlobalScript.asc", line 426
Also the mouse cursor won't move when the key is pressed, and the character doesn't move until after I let go of the