Keep at it, you'll get it eventually. You'll have to experiment with things, but it sure does feel good once you manage it.
Last night when I was capturing shiny Spheals I thought I'd have to give up and try later because of one, annoying NPC, but after switching around and adjusting a lot it came eventually. Patience is pretty necessary for a lot of these things, though, haha.