I am pretty new to Slick but I already got a map loaded from Tiled Editor with a Spritesheet as Character which can move around with collision detection.
My problem now is that is when I move for example left I want, instead of the character "warping" from one tile to another, the character to be drawn like a "real" animation meaning that after I press left the characters gets drawn 1 pixel after another until it arrives at the next tile
Unfortunately when I use g.drawAnimation multiple times it draws the player multiple times.
I would need something along the lines:
delete_previous_player(); //<- dunno how to achieve this
I have no idea how to achieve this.
Apparently I shouldn't do or can't do any drawings in update() and should do it in render()
g.flush() and g.clear() somehow didn't work, maybe I used the in the wrong way...