Conditioning children is the only way. Slapping their ass is a good way, though it forces a certain timid sense around the parent. A more efficient process is to take into consideration whether this is a learning experience, or they are not getting the point you are sending across. After that, you should be able to figure it out.