# Air Hockey code/principles etc

**URL:** <https://forum.kirupa.com/t/air-hockey-code-principles-etc/34773>\
**Category:** Uncategorized\
**Created:** [November 6, 2003, 6:05am UTC](https://forum.kirupa.com/t/air-hockey-code-principles-etc/34773 "2003-11-06T06:05:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratbaggy](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@ratbaggy](https://forum.kirupa.com/u/ratbaggy)\
**Post date:** [November 6, 2003, 6:05am UTC](https://forum.kirupa.com/t/air-hockey-code-principles-etc/34773/1 "2003-11-06T06:05:07Z")

</div>

anyone got any hints/tips/ tutes/codes on making an air hockey type game?

cheers big ears 🙂

---

<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:** [November 6, 2003, 6:22am UTC](https://forum.kirupa.com/t/air-hockey-code-principles-etc/34773/2 "2003-11-06T06:22:26Z")

</div>

Easing  
[www.bit-101.com](http://www.bit-101.com) -good tutes in actionScript!!  
Boundries -do a search here  
hitTest -paddle to puck, puck to goal.  
…and math…

---

<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:** [November 6, 2003, 6:47am UTC](https://forum.kirupa.com/t/air-hockey-code-principles-etc/34773/3 "2003-11-06T06:47:57Z")

</div>

that, and do a search for a pong type game, I think really the only difference would be that with air hockey the paddles are not bound to only move on a Y axis.

---

<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:** [November 6, 2003, 7:01am UTC](https://forum.kirupa.com/t/air-hockey-code-principles-etc/34773/4 "2003-11-06T07:01:34Z")

</div>

Eh… The bounding boxes for the paddles would have to be each’s half court line… Just make use of the code that marks the old x location to get a source for power then…

Just look around for the throwing ball stuff… 🙂 Where you can throw a ball in the air… the code that allow you to throw that ball is a source of power code… transfer that to a pong type ball that bounces and you have air hockey… 😛

---

<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:** [November 6, 2003, 7:20am UTC](https://forum.kirupa.com/t/air-hockey-code-principles-etc/34773/5 "2003-11-06T07:20:30Z")

</div>

and limit the goal area, don’t forget that.

---

<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:** [November 6, 2003, 1:43pm UTC](https://forum.kirupa.com/t/air-hockey-code-principles-etc/34773/6 "2003-11-06T13:43:28Z")

</div>

_Ratbaggy tries to put all this together_

thanks for the help poiples. 😃

will gee it a shot. I think my flash skills need a test anyways.

keep truckin’ 🙂

–edit–  
100 posts for me! 100 posts for me! 100 posts for meeeeeee!

think they’ve all been lame questions :nerd:

---

<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:** [November 6, 2003, 4:21pm UTC](https://forum.kirupa.com/t/air-hockey-code-principles-etc/34773/7 "2003-11-06T16:21:53Z")

</div>

One more thing that hadn’t been mentioned: The puck has to have some drag added to it as well. Good luck!! 🙂
