00:00
00:00
Newgrounds Background Image Theme

Mekatov just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

AS: make a pong game with physics

21,359 Views | 46 Replies
New Topic Respond to this Topic

Response to AS: make a pong game with physics 2005-10-21 06:21:19


If you want to make the gravity in your game similiar to planet earth's gravity, you need to know the following equation:

Gravitational force = (G * m1 * m2) / (d2)

G is the gravitational constant, m1 and m2 are the masses of the two objects for which you are calculating the force, and d is the distance between the centers of gravity of the two masses.


BBS Signature

Response to AS: make a pong game with physics 2005-10-21 06:38:04


Wow, toast, you did a fantastic job in making this for the newgrounds community. Alot of thanks ;-)


Your path is dark.

Response to AS: make a pong game with physics 2005-10-21 11:06:25


At 10/21/05 06:38 AM, FlashKid wrote: Wow, toast, you did a fantastic job in making this for the newgrounds community. Alot of thanks ;-)

Lol, thanks.
When I re-read it now, I realise the code looks kind of noob - ish / newb - ish, variables aren't with correct syntax, "{" and "}" are in weird places, it could be way shorter, etc..


BBS Signature

Response to AS: make a pong game with physics 2005-11-13 07:19:17


i got a problem. wen the ball hits the middle of my paddle, it falls throo


BBS Signature

Response to AS: make a pong game with physics 2005-11-13 07:28:26


Yeah, I know, when I made this thread I didn't even know shapeflag. Just use shapeflag and make the pong MC into one part.


BBS Signature

Response to AS: make a pong game with physics 2005-11-13 07:42:40


Hoeloe, contact me please so I can help you. Also, I need to ask you a question.

Msn - darktoaster@hotmail.com
Aim - Darkened toast


BBS Signature

Response to AS: make a pong game with physics 2006-01-21 20:42:33


I have a problem, i dont think i read correctly, but i made the paddle and the ball work perfectly, its just that the ball whenever it hits the other "ball" it goes to a new position yeah, but it doesn't add a score to my scoring thing. I think i did the dynamic text box wrong, how do u do a dynamic text box?

Response to AS: make a pong game with physics 2006-08-07 10:26:14


yay! im bookmarking


OS: Ace, coming soon to Newgrounds. Keep an eye out for it.

BBS Signature

Response to AS: make a pong game with physics 2006-08-07 10:37:26


Well bumped >.<

loldarktoaster

BBS Signature

Response to AS: make a pong game with physics 2006-08-21 15:24:52


my game has a glitch!......when you go to the bottom right cornor the paddle goes off screen...i no wats wrong, but thats my glitch....and my paddle is not working....ball doesnt bounces off of it


Blok' Party, Orbital Khaos, site, MSMstudios, Phrozen Phlame

BBS Signature

Response to AS: make a pong game with physics 2006-08-31 19:09:39


i still really want to know


Blok' Party, Orbital Khaos, site, MSMstudios, Phrozen Phlame

BBS Signature

Response to AS: make a pong game with physics 2006-08-31 20:35:28


Cool tutorial, amazing how such a simple concept as pong requires complex physics to work. But thats with every game, which is why I gave up on actionscripting...


Whoa its me!

Response to AS: make a pong game with physics 2006-10-13 13:18:32


Nice tute there mate, i understand it quite well. :D

Response to AS: make a pong game with physics 2006-10-13 14:17:51


At 10/13/06 01:18 PM, Jimbob130495 wrote: Nice tute there mate, i understand it quite well. :D

Lol, I wonder if he's still around, this thread is more than 1 year old.


BBS Signature

Response to AS: make a pong game with physics 2007-11-08 20:39:26


How do i make a paddle move with the mouse?

Response to AS: make a pong game with physics 2007-11-08 21:45:56


At 11/8/07 08:39 PM, Darth-Jonathus wrote: How do i make a paddle move with the mouse?

you start by bumping a two year old thread.


wtfbbqhax

Response to AS: make a pong game with physics 2007-11-11 07:34:37


<Player Paddle>

onClipEvent (load) {
pr = 1;//sets the right speed to 1
pl = 1;//sets the left speed to 1
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP)) {
this._y -= pl;
}
if (Key.isDown(Key.DOWN)) {
this._y += pr;
}
if (this._y<37) {
pl = 0;
} else {
pl = 5;
}
if (this._y>360) {
pr = 0;
} else {
pr = 5;
}
}