problem limit of move

I have problem with limit of movie

I try to do limit of movie on right and left sides
after press buttons in python code like added example

I have limit of movie on left side after press S key
but I haven’t limit of movie on right side after
press W key. I don’t know why don’t write a code

anybody can help me if yoy can please ? limit of movie.blend (468 KB)limit of movie.blend (468 KB)limit of movie.blend (468 KB)limit of movie.blend (468 KB)

Can you elaborate please? I’ve read your post several times now and don’t have a clue what you’re talking about. :frowning:

I try modify code of pythot in added file “limit of movie” that:

Object “ball2” will move of left side after press and keep “S”
button ( and to definite distance and stop (it’s working corectly)

The same object “ball2” will move of right side after press and keep “W”
button to definite distance and stop (it’s not working -
object move and don’t stop - don’t working limit)

Differently
I want That this what happening after press button “S”
it will be the same after press “W” button

Mybe this example explain it
I have it but not working correctly
Move proceed only once and have not limit on left side

Attachments

limit of movie2.blend (469 KB)

I try modify code of pythot in added file “limit of movie” that:

Object “ball2” will move of left side after press and keep “S”
button ( and to definite distance and stop (it’s working corectly)

The same object “ball2” will move of right side after press and keep “W”
button to definite distance and stop (it’s not working -
object move and don’t stop - don’t working limit)

Differently
I want That this what happening after press button “S”
it will be the same after press “W” button

Mybe this example explain it
I have it but not working correctly
Move proceed only once and have not limit on left sidelimit of move2.blend (469 KB)