Movement and scripting

posted in Yar
Published February 21, 2005
Advertisement
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"});
Previous Entry More GUI Screeny
Next Entry Screeny
0 likes 1 comments

Comments

Rob Loach
Could even put it in a big string:

character01.move("UUULLLDDDRRRJ");
February 22, 2005 04:13 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

!!!!!!!

671 views

MIDI Keyboard v1.7

1540 views

Yar.

1209 views

Orchestra Recording

1324 views

MIDI Keyboard v1.5

1459 views

Registration

1324 views

Ahhh!!!

1090 views

Um... yeah...

1076 views
Advertisement