Making tiles have collision detection on sprite sheets

Sorry if this belongs in the other Newbie & Debugging questions, but since this is gaming-related, I might as well ask here, if not, please have a mod or admin move it for me, please.

So I’m using a Sprite Sheet, and I was wondering how exactly you would make some (not all) of the tiles “solid”, as in if your player hits it, they don’t move unless they go around it.

The reason I say some is because I may want some tiles that aren’t solid.

Make a tile class, and add a “isSolid” boolean to it, then do some AABB collision checking with your tiles and if isSolid = true, run a collide event, if not, move right through.