You asked

Pentax k r vs pentax k x?

The guide sees little difference between these two Pentax DSLRs. Both have a 12.4-megapixel APS-C sensor, in-body stabilisation and the Pentax K mount, so they take the same lenses. The Pentax K-x was announced in 2009 and runs on four AA batteries. The Pentax K-r was announced in 2010, and its page gives no battery details, so the guide can't compare power on that point. The lens lists on the two pages are almost identical, so the choice between them won't change which lenses you can use.

Since the bodies match, the lens matters more than the camera for dim light and moving subjects. A fast lens lets in more light, and stabilisation only steadies the camera. Three lenses from the catalogue suit that job on either body:

The site doesn't give prices for these bodies or lenses, so it can't say which one is better value. Check current prices in shops, and where a used body is on offer, compare its condition as well as its price.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.