# Ball bounce based on the coordinates

**URL:** https://forum.kirupa.com/t/ball-bounce-based-on-the-coordinates/199452
**Category:** Uncategorized
**Created:** [September 2, 2006, 5:29pm UTC](https://forum.kirupa.com/t/ball-bounce-based-on-the-coordinates/199452 "2006-09-02T17:29:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![messi](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@messi](https://forum.kirupa.com/u/messi)
#### Post date: [September 2, 2006, 5:29pm UTC](https://forum.kirupa.com/t/ball-bounce-based-on-the-coordinates/199452/1 "2006-09-02T17:29:11Z")

</div>

Hi iam doing a cricket game.  
Bowling : On the pitch their are two lines one moving horizontal (line\_marker) and one moving vertical(length\_marker). The line\_marker is to select the line of the delivery, and length\_marker is used to select the length of the delivery. The two markers are kept as two seperate movie clips.

1. On the main timeline i have the two markers running, but one marker is masked under another(length\_marker masked by line\_marker). I also have a button on the main timeline. When pressed once the line\_marker should stop and when pressed once more the length\_marker should stop.  
How do i do that.

2. Once the two markers are stopped, how do i get the x and y coordinates for the markers.

3. How do i make a ball bounce on that particular x and y coordinate and make it move in that path.

Hope the question is not confusing.

Ash.
