Collision/Movement/Animation

How do I upload my project to make this easier? Else this is what I'm doing :

Char1 -

Purple = View
Burgundy = Animation Table
Light Pink = Actors/Game Attributes
Yellow = Move Right
Light Blue = Animation
Dark Blue = Movement and Stop
Green = Initialize variables
Orange = Char1 local variables

Char2 -

Green = Local Variables
Orange = Initialize variables
Yellow = Change x/y for a third player to follow
Blue = Move to Char1 position
Purple = Animation

Image change is : tableCellValue(game.TBAnimation,self.Char1Image,self.Char1ImageStart+self.Char1Animation)
Direction is : Up =1,Right=2,Down=3,Left=4

Char1 -

[img]http://i.imgur.com/XJ0dX8Z.jpg[/img]

Char2 -

[img]http://i.imgur.com/TNQbGHt.jpg[/img]

As of right now it works(with a small bug, within first few steps Char2 will jump to Char1's Position), after that they follow and animate properly(If Char1 is moving Left, but Char2 is moving to where Char1 was, and its Up, Char2 animates Up when Char1 animates Left).

My questions are :

Is this a good way to do things?, or is there a much easier way to achieve the follow + animations of 1-4 Characters.

How would I achieve collision with how my current project is setup(I've been going nuts trying to solve this, since one of my checks is AFTER Char1 has moved the proper amount of pixels), so if collision was to happen before, I would have to reset him back to previous position(which I have tried, and failed).

Overall happy with what I got to work so far, but if there is a easier way to achieve the following AND have a easier collision method I would greatly appreciate it. Also as stated above, if there is a way to upload the project if this is not enough information, please let me know!. Thanks.

Comments

Sign In or Register to comment.