In those RPG games, when a player walk

in those RPG games, when a player walk, does the game use hitTest() to check collisions? I don’t think they use tiles because then they’ll have too much tiles. My idea is that they use tiles (only 1 and 0), and draw a picture that fit with the tile map. Is that right? Or is there any other solution for collision? hitTest is slow, I think