Page 1 of 1
pong problems.

Posted:
Fri Apr 18, 2008 5:15 pm
by Squirrelman
I read a few posts around the site on how to make a pong game. but the ball keeps slowing down and eventually going through a wall. I made a wall of actors around the visible area and when it collides with them it should change direction, but sometimes goes though them. maybe it has something to do with the fact that i used multiple actors to make the wall and it might hit more than 1, and possibly go between them? any clues?
Re: pong problems.

Posted:
Fri Apr 18, 2008 5:47 pm
by Caaz Games
when i made breakout, i had the same problem, i used tiles made of just horizontal and vertical lines around the view i made them kind of big so the physical response would work because if its small sometimes it can go through and also make sure to put collision at repeat.
Re: pong problems.

Posted:
Fri Apr 18, 2008 6:28 pm
by Squirrelman
Any idea how to fix the speed? It slowly slows down until eventually it is almost stopped.
Re: pong problems.

Posted:
Fri Apr 18, 2008 7:12 pm
by Caaz Games
change the phisical response thing from 1.0 to somthing higher like 2 the box over the bottom one, i with i made more sence
Re: pong problems.

Posted:
Fri Apr 18, 2008 9:16 pm
by Squirrelman
Ill try it again but when i tried that it went faster each time it hit, but either eventually got too fast or slowed down if the distance was long enough. though most of the time it just went out of the area. lemme try again and see what happens with different walls.
Re: pong problems.

Posted:
Fri Apr 18, 2008 9:26 pm
by Caaz Games
in breakout i had it to 1.5 i think and the walls were 5 pixels i think
Re: pong problems.

Posted:
Fri Apr 18, 2008 9:34 pm
by Squirrelman
hmm mine are labeled as 15x15 pixels.
Re: pong problems.

Posted:
Fri Apr 18, 2008 9:41 pm
by Squirrelman
i have the top 2 numbers as 5 and the bottom 1s as 1 and 1.5 and i tried 1.5 and 1. it keeps slowing down. maybe its because on my pong there is a lot of free space and the ball hits walls a lot more then the paddles? meaning it doesn't get sped up as often.
Re: pong problems.

Posted:
Fri Apr 18, 2008 9:53 pm
by Caaz Games
yea put it on the walls too
Re: pong problems.

Posted:
Fri Apr 18, 2008 11:59 pm
by Squirrelman
oh no, I have the trigger on the ball itself so when it hits anything it triggers, what i meant was that there is so much space between the walls that it slows down a lot before it gets a boost. The triggers I'm using are from this, and that pong also has the same problem...posted by macslane(not sure spelling) in another thread.
http://game-editor.com/examples/pong.zip
Re: pong problems.

Posted:
Sat Apr 19, 2008 12:37 am
by Game A Gogo
in draw actor of the ball
- Code: Select all
directional_velocity=10; //this is the desired speed
Re: pong problems.

Posted:
Sat Apr 19, 2008 2:56 am
by Squirrelman
thank you. that seems to work. though it still goes through the wall after a while -.- ill just make a regional limit. it still could be a problem if it goes through the paddle or something....maybe it won't happen with the larger paddle pixel?
Re: pong problems.

Posted:
Mon Apr 21, 2008 12:15 am
by Game A Gogo
if the object's velocity is greater then the depth of the object that it will collide with, it will go trough