piątek, 11 marca 2011

character movement

We have character. Little girl. We exported sprites with a couple of movements like: stand, walk left, walk right, break, blink, wave. Now question is: how to move it?

We have 3 options:

1) move along bezier path.

2) give it physical properties and move among other physical objects

3) combine previous options

At this moment we have first option implemented. I found Java applet implementing drawing bezier path along n-points. I rewrote it into lua class. Our character moves along path getting cooridinates of points drawing path.

Next, I'll try to add second option and next step is to implement parallax scrolling.

Brak komentarzy:

Prześlij komentarz