For visual novels, Ren'Py is the most popular solution, but there are quite a few others, some downloadable, others browser-based. For point and click games, some people have used RPG Maker, but Adventure Game Studio is tailor-made for the genre, and free. Other, general-purpose engines may be usable for either kind of game.