Try gamemaker to start. It's free and easy to use, though you have to be on a PC. After that, you'd want to go to Flash or an OOP based language and start learning how to put together games with code.
Also, gamemaker games won't work on this site. You can only use flash or an AS3 compiler. I'd recommend you start and make some good games in gammaker, then learn flash and port some over into it.
another good simple free one is byond youtube the game seika and resident evil online and dragonballz heroes united all made in byond once again thats byond btw it stands for build your own net dream
If you are starting to want to do programming then try Scratch. I have been making a few games on there that are kind of remixed versions of Flash games. It's free so you don't have to worry about paying. Hope that helped!