|
Post by asmodeus on Aug 10, 2009 7:14:22 GMT -5
How can I bind a sprite to stay within my 32x32 tilemap instead of looping the tilemap?
Thanks, Asmodeus
|
|
OW
Posts a bit
Posts: 100
|
Post by OW on Aug 10, 2009 13:03:55 GMT -5
Make him unable to move if he's already hit the edge, like:
if ScanKey(VK_LEFT) then if X > 1 (or whatever the boundary is) then x - 1
|
|
|
Post by shadow008 on Aug 12, 2009 10:18:44 GMT -5
?question mark?
when you say looping the tilemap, do you mean the sprite is actually doing circles around the tilemap or your just trying to keep it in it?
|
|