How to move a sprite character in steps of 32

Blitz3D Forums/Blitz3D Beginners Area/How to move a sprite character in steps of 32

Dicon(Posted 2011) [#1]
I have tried for days to find a method of moving my character which is a 32*32 sprite along an ( invisible) grid in steps of 32 at "walking" speed. It's basically a maze game, which should be easy, but for some reason, proly my brain, I can't seem to do it. Any help appreciated.
Dicon


Warner(Posted 2011) [#2]
Perhaps, use a target. The target moves with steps of 32, then the player follows this target with steps of 1.


melonhead(Posted 2011) [#3]
is there a sample code for this im also trying to find a way to do this as well


_PJ_(Posted 2011) [#4]
You say a Sprite character,. but is this a 3D sprite, or just a 2D image?

The reason I aask iss because the code is different for handling movement in 3D space to that of the 2D screen.

For 3D Sprites:





Or for 2D Images: