Hi Im new to C2 and I found the example from this post interesting. But I was wondering how to implement the same grid-like movement but you can see the player move between each square rather than just teleport between each grid.
Here are my thoughts:
When a directional key is pressed: An instance variables on the player (object to be moved) to store the 'target' X,Y coordinates to the next grid and for every 'n' ticks increment (or decrement) the players current direction until the players 'current' X,Y is equal to the target X,Y.
I think this might work but I was wondering if there was a more optimal way of implementing this tile movement. Also I want the camera to lock on to the player during this transition. Since I've only started using C2 I'm guessing that this is simply done in one of the attributes of the player, 'scrolling' is it?
I want to implement my game so that the player sprite is shown moving between two adjacent tiles with a duration of 0.5 seconds.
Thanks.