Movement and scripting
Published February 21, 2005
I've been working on a move cue array. This allows me to create an array like {L,L,D,D,R,L,U} and then pass it to the actor and it does each move sequentially. I'm doing this because there was a problem if lets say you said move left twice within 100ms, the actor wouldn't complete its animation loop in the correct place, but actually jump a tile past where it was supposed to.
This will also play into the scripting in events:
character01.move("U",3);
character01.move("L",3);
character01.move("D",3);
character01.move("R",3);
character01.move("J");
-or-
character01.move({"U","U","U","L","L","L","D","D","D","R","R","R","J"});
character01.move("UUULLLDDDRRRJ");