Hey Robert, have you looked at that tile game tutorial site I posted earlier? That might really help you get this all working

Maybe this site can help?
http://www.tonypa.pri.ee/tbw/tut05.html

It is using action script (Flash) but I managed to folow the tutorials, especially "Hit the Wall" and "Jumping" to make a simple platform game with collision that worked quite well
cheers,
Paul