Jump to content
  • Advertisement

Yar

Sign in to follow this  
  • entries
    208
  • comments
    383
  • views
    66183

Movement and scripting

Sign in to follow this  
H_o_p_s

124 views

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"});
Sign in to follow this  


1 Comment


Recommended Comments

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!