Trying to make enemy AI 2d Sidescroller

Is there any good tutorial for this? I’ve been trying, but there all for meshes and not sprites…