Search Unity

Move character from one tile to other

Discussion in 'Scripting' started by JesusMartinPeregrina, Jan 14, 2014.

  1. JesusMartinPeregrina

    JesusMartinPeregrina

    Joined:
    Nov 2, 2013
    Posts:
    44
    Hi guys, I having problems for get this:
    Think in the flashback classic game
    View attachment 82254

    When the player push the walk button the character moves exactly 2 tiles in a direction. Well, I have my 2d animations implemented with a animationController, and if the player push de walk button and release it the character animates and move until the character complete one walking step. The problem is that this animation doesn't require the same time always, so I can't calculate a value to move the character while this animation is running.
     
    Last edited: Jan 14, 2014