I think he knows how to move characters and that the problem is moving the character while he is performing an animation.
I've tested it and it seems the walking loops of the locked animation view are used when moving the character with the MoveCharacter* commands.
All I can think of at the moment is modifying the character.x variable directly with something like this:
Code: ags
I've tested it and it seems the walking loops of the locked animation view are used when moving the character with the MoveCharacter* commands.
All I can think of at the moment is modifying the character.x variable directly with something like this:
SetCharacterView(THECHAR, 10); // lock view 10 for animation
AnimateCharacter(THECHAR, 3, 0, 1); // start repeating animation using view loop 3
int i = 0; // declare loop counter
while (i < 30) { // repeat the following 30 times:
character[NAME].x -= 1; // move character 1 pixel to the left
Wait(1); // wait 1 game loop
i++; // increase loop counter
}
ReleaseCharacterView(THECHAR); // stop animation and restore normal view