GameMaker is a pretty good 2D game engine. I used it up until Yoyo Games pushed me out by making it prohibitively expensive with the release of Studio - but from what I hear, they've recently reversed course on their pricing in a good way.
I originally learned how to write code using the (very easy to learn) drag and drop editor in GameMaker 6, and I'm now a professional software developer, so I guess it holds a special place in my heart, haha.