Jump to content

Yar

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

Movement and scripting

Sign in to follow this  
H_o_p_s

119 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!