# Ball bounce help urgent please!

**URL:** <https://forum.kirupa.com/t/ball-bounce-help-urgent-please/66053>\
**Category:** Uncategorized\
**Created:** [October 1, 2004, 11:03pm UTC](https://forum.kirupa.com/t/ball-bounce-help-urgent-please/66053 "2004-10-01T23:03:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Limitlis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/limitlis/32/788_2.png) [@Limitlis](https://forum.kirupa.com/u/Limitlis)\
**Post date:** [October 1, 2004, 11:03pm UTC](https://forum.kirupa.com/t/ball-bounce-help-urgent-please/66053/1 "2004-10-01T23:03:53Z")

</div>

Hi everyone,

I know you guys can help me :D. Im trying to create a simple game the obejct is to keep a ball from hitting the ground by clicking (which will bounce the call).

So far (using tutorials on Kirupa) I have the ball bouncing off the walls. ceiling, and floor, with the ground (hittest) which for testing purposes only gives you text feedback and resets the score.

The tutorial on kirupa has you click drag and releasing the ball, and this is cool and all but I think it would be funner if it was based on just a click.

Im stuck 😱 . I dont even know where to start to get the ball to bounce off the mouse click. I had one way but it wasn’t working good at all.

Also I’m wondering if theres a way to have the ball go a random direction off the Mouse click?

I’m using slighty modified code from the [Physics:Gravity] tutorial on Kirupa home page.  
[http://www.kirupa.com/developer/actionscript/gravity.htm](http://www.kirupa.com/developer/actionscript/gravity.htm)

The part where I’m stuck is how to get the ball to bounce on a mouse click.  
I would like to have the ball move bounce = 1. ALthough Im wondering How i could modify that code to have it move a random amount on X + or - (left or right).

PLease any help is greatly appreciated.

Thanks in advanced.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 2, 2004, 3:23am UTC](https://forum.kirupa.com/t/ball-bounce-help-urgent-please/66053/2 "2004-10-02T03:23:29Z")

</div>

there was a topic at [actionscript.org](http://actionscript.org) about this awhile ago, [this was it](http://www.actionscript.org/forums/showthread.php3?t=52998&highlight=ball+click+game) it has some links to go to and someone made a version but it needs improvements, but should have what u need to get started

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 2, 2004, 6:38am UTC](https://forum.kirupa.com/t/ball-bounce-help-urgent-please/66053/3 "2004-10-02T06:38:41Z")

</div>

So you wanna create something like the game in the KirupaArcade? Why don’t you try and get in contact with the creator of that, he might be kind enough to share with you some coding or help point you in the right direction. Either way, I suggest you check the game out if you havent already.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 2, 2004, 7:14pm UTC](https://forum.kirupa.com/t/ball-bounce-help-urgent-please/66053/4 "2004-10-02T19:14:27Z")

</div>

> [@Dr Warm](#):
>
> there was a topic at [actionscript.org](http://actionscript.org) about this awhile ago, [this was it](http://www.actionscript.org/forums/showthread.php3?t=52998&highlight=ball+click+game) it has some links to go to and someone made a version but it needs improvements, but should have what u need to get started

\<br/\>

Hey Thanks A lot Im gonna check it out to see if I has what I need.

thanks for your help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 2, 2004, 7:15pm UTC](https://forum.kirupa.com/t/ball-bounce-help-urgent-please/66053/5 "2004-10-02T19:15:45Z")

</div>

> [@Skinny\_T](#):
>
> So you wanna create something like the game in the KirupaArcade? Why don’t you try and get in contact with the creator of that, he might be kind enough to share with you some coding or help point you in the right direction. Either way, I suggest you check the game out if you havent already.

Hey Thanks I’ve never seen the game on KirupaArcade. But I’ll go try and check it out. Thanks a bunch to all who replied.
