Re: A86: Tilemaps and Collision Detection


[Prev][Next][Index][Thread]

Re: A86: Tilemaps and Collision Detection




In a message dated 4/22/00 5:29:54 PM Eastern Daylight Time, 
zoneti@tinews.net writes:

> Hrmm...I'll try this. But you use "or a" to check if the tile is clear.
>  Does this only work for blank tiles?

The code assumes that the only tiles that can be passed through are those 
with a value of 0.  You can change the code to check for whichever tiles are 
passable and which ones are solid.

Also, before moving the coordinates be sure to erase the old sprite and to 
redraw it after updating the coords.


----
Jonah Cohen
<ComAsYuAre@aol.com>
http://jonah.ticalc.org



Follow-Ups: