The example I showed to you I used Flung Block. I have to move the ball manual. I wanted also in addition to move the ball with a bar. to avoid any misunderstanding I did a new project.
I just have now a Canvas, Ball and Bar(ImageSprite) as you can see in Picture 1.
I first tried to see if I can move the ball just by dragging the bar and hitting the ball. It works. The codes can bee seen in Picture 2. Once I drag the bar and hit the ball, the ball goes to the (20/50)
At least I know that it is possible to cause a action when I drag the Bar and hit the ball with it.
Now you mentioned something with "Speed property". And I used now the Speed property as you can see in Picture 3.
Now when I drag the Bar and hit the ball, the ball is rolling to the right. It doesnt matter from where I hit the ball, it always rolls to the right.
I noticed once I hit the ball, nothing happens when I hit it again. So I add another code. see Picture 4.
Now I can drag the bar and hit the ball over and over again and each time the ball rolls to right.
I think I am on the right way to solve my problem. All I want is that the Ball goes into the opposite direction from where I hit the ball.
Lets say I drag the bar hit the ball from below then it ball should roll up etc.
Scott, can you help me out here please? I know I am almost there but I dont know what to do...