Annoying problem, Please help!

Hi guys, I have an annoying problem. What I'm trying to do is this, if my actor is not = to 23.5, change attribute self.pos.y to 23.5. This works fine in concept, but when I try out the game, they move suddenly to random places like -20, 750 and others, but not 23.5. How can I fix this?
Liamo
Liamo
Comments
Liamo
Liamo
Liamo