Hullo everyone--
I have a character that moves back and forth across the screen within repeatedly_execute_always(), but when you try to interact with him, nothing happens. Even hovering the cursor over him doesn't display his name. The movement script is straight from the manual, with the coordinates and character name swapped out.
Code: ags
Incidentally, what does the '!' do preceding cCharacter.Moving do/mean? Does it denote 'not'? As in 'if the character is not moving'?
Thanks in advance!
I have a character that moves back and forth across the screen within repeatedly_execute_always(), but when you try to interact with him, nothing happens. Even hovering the cursor over him doesn't display his name. The movement script is straight from the manual, with the coordinates and character name swapped out.
if (!cJerrysHead.Moving)
{
// if Jerry is at the left, bobble him right
if (cJerrysHead.x < 50)
{
cJerrysHead.Walk(860, cJerrysHead.y, eNoBlock, eAnywhere);
}
// otherwise, bobble Jerry to the left
else
{
cJerrysHead.Walk(0, cJerrysHead.y, eNoBlock, eAnywhere);
}
}
Incidentally, what does the '!' do preceding cCharacter.Moving do/mean? Does it denote 'not'? As in 'if the character is not moving'?
Thanks in advance!
