Thank you for your replies!

@clean_citrus: Thank you for your source file, it's a smart way to give the player more control over the ball. But I need something a little different: I want the ball, when it collides with the bat, to adjust its direction in base of where it collided on the bat. I mean, if the bat's sprite's width is 64, and the ball collides exactly in the center (32), it must go in the direction up (8). If it collides a bit on the right, for example 50, it must go on the right in a direction like 5, I don't know exactly.
In particular, I want the ball's direction to be a value between 3 and 13. My bat's sprite's width is 64, the ball's width is 16, and both have the action point in the center.
I thought of something like this:
direction = 3 + x
x : 11 = collision point : bat width
x = 11 * collision point / bat width
collision point = ball.x - bat.x + 32 (+32 because of the action point in the center)
So in the collision between ball and bat event, I added the action "Set direction to 3+11*(X( "Ball" )-X( "Bat" )+32)/64", but it doesn't work, because the ball always go on the right.
Could you help me again, please? Thank you very much for your help!
