i am trying to get the coordinates x,y of the movement between two balls using the collider with each other and the block dragged ball with the current x and y but only get one value x,y static in the label results. why?. if the ball is in movement using move to and point in direction like this
The black ball moves faster than the red ball, so it collides with it, providing an event to capture the coordinates, and move the red ball away from the black ball, so that it can be collided with again.
You could make the red ball with no colour so that it does not show.
its working but now i have a other problem and its i am using the touchdown and touchup button for start and stop the movement of the balls but not working
i have other question how can make that the value start from 1? i am changing the values of ball1 x and ball 2 x that when collided get starting in 1 but i cant, always start in 30
Because ball1 is colliding with ball2 on screen initialise (setting the X of both balls to 1 will cause a collision), so ball2 jumps to the right
You will need to include some if conditions in your collide event to prevent the handling of the collision if X values are less than the number you choose.