Original Post
Hello ! this is how i check if we may have a collision around in the world: // TESTING , COLLISION UNDER SPECIAL CIRCUMSTANCES ****->Johan int tx1 = DC->m_SidePlayer.m_iXpos / TILE_SIZE; int ty1 = DC->m_SidePlayer.m_iYpos / TILE_SIZE; int tx2 = DC->m_SidePlayer.m_iXpos+32 / TILE_SIZE; int ty2 = DC->m_SidePlayer.m_iYpos+32 / TILE_SIZE; for( int y = ty1; y < ty2; y++ ) for( int x = tx1; y < tx2; y++ ) { if( DC->m_Tilemap_Side.m_map[x + y * SIDEWORLDWIDTH].m_iFlags == 'a') { HDC hdc = DC->m_dDraw->getBackbufferDC(); TextOut(hdc,0,200,"HEJ",strlen("HEJ")); DC->m_dDraw->releaseBackbufferDC(hdc); } } Unfortually it doesnt work :( can anyone see anything wrong here ?