Thats the main idea, work it out good enough and you'll have your collision ready.
A tip, if you're gonna use shaped tiles, say for example a ramp, if the tile returned was a shaped one, go to the array wich stores information regarding that, and other shaped tiles. What information?, well, for example that at X position within that tile corresponds Y. Get the idea?, when your in the tile, at x=4 (example, and that 4 is within the tile, not regarding the screen/world/whatever...), the height/y ther would be, say, 2... and at x=7 , y=5... and well thats pretty much it.
If this of no use, well, it'll leave the record for others to read. If you know of a better way of doing it, then please state it and let me test it...
Further on my stuff at...
