Essentially I've written a system that uses the pixel_x and pixel_y variables of a player to simulate pixel by pixel movement, and I have the algorithm for collisions based on that ready (though not in use yet). My problem, however, is that the player icon itself neither animates nor slides across the pixels as it should and so instead I get a kind of teleport effect where the player instantly appears up a few pixels without sliding there as though moving.
Now while I'm sure I can get the movement animated with the flick() proc, I am kinda stumped about the not sliding thing. I looked at the pixel projectile demo and it does the teleporty movement too, which doesn't help at all.
So anyway, any advice on this? In particular I'm worried about the teleport vs slide thing. It looks really bad...
Eh as a side note, whenever I move the player up a tile they animate from one square to the next walking, which is NOT what I want. Am I doing something wrong? Basically, I'm using the following:
src.loc = locate(src.x,src.y-1,src.z)
When you have something like the following to update the tile-based location
since you are actually moving up a tile, the built-in tile movement slides you up, but the pixel_y part jumps you down 32 pixels, and that is what gives you the unwanted effect where you jump down a tile then slide back up.