Thread:Randomouscrap98/@comment-24653983-20140818160511/@comment-9531161-20140818163310

You must have some way of storing the map... for instance, are you storing it in an array, or are you directly generating the BG map? If you're using an array, you can check out this example program: Simple Map Collision Detection (Array Based). It uses DATA to fill in the array, but it doesn't matter where the array data comes from; the only thing that matters is that you're using an array to store the map.

If you're only using the BG layer for the map without any extra data, you can use BGREAD to get the tile number for a particular location, and then use the same idea in the Simple Map Collision Detection (Array Based) to detect the collision. Check out the in-game manual to see how BGREAD works, and let me know if you're confused.

If you're able to use either the array or BG method, let me know if you need help with the detection method presented in the above program. However, I'd like you to look at the program first before asking questions, as it'll make it easier for me to explain.