pong problems.

Game Editor comments and discussion.

pong problems.

Postby Squirrelman » Fri Apr 18, 2008 5:15 pm

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?
Squirrelman
 
Posts: 12
Joined: Tue Mar 25, 2008 7:00 pm
Score: 0 Give a positive score

Re: pong problems.

Postby Caaz Games » Fri Apr 18, 2008 5:47 pm

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.
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Re: pong problems.

Postby Squirrelman » Fri Apr 18, 2008 6:28 pm

Any idea how to fix the speed? It slowly slows down until eventually it is almost stopped.
Squirrelman
 
Posts: 12
Joined: Tue Mar 25, 2008 7:00 pm
Score: 0 Give a positive score

Re: pong problems.

Postby Caaz Games » Fri Apr 18, 2008 7:12 pm

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
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Re: pong problems.

Postby Squirrelman » Fri Apr 18, 2008 9:16 pm

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.
Squirrelman
 
Posts: 12
Joined: Tue Mar 25, 2008 7:00 pm
Score: 0 Give a positive score

Re: pong problems.

Postby Caaz Games » Fri Apr 18, 2008 9:26 pm

in breakout i had it to 1.5 i think and the walls were 5 pixels i think
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Re: pong problems.

Postby Squirrelman » Fri Apr 18, 2008 9:34 pm

hmm mine are labeled as 15x15 pixels.
Squirrelman
 
Posts: 12
Joined: Tue Mar 25, 2008 7:00 pm
Score: 0 Give a positive score

Re: pong problems.

Postby Squirrelman » Fri Apr 18, 2008 9:41 pm

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.
Squirrelman
 
Posts: 12
Joined: Tue Mar 25, 2008 7:00 pm
Score: 0 Give a positive score

Re: pong problems.

Postby Caaz Games » Fri Apr 18, 2008 9:53 pm

yea put it on the walls too
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Re: pong problems.

Postby Squirrelman » Fri Apr 18, 2008 11:59 pm

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
Squirrelman
 
Posts: 12
Joined: Tue Mar 25, 2008 7:00 pm
Score: 0 Give a positive score

Re: pong problems.

Postby Game A Gogo » Sat Apr 19, 2008 12:37 am

in draw actor of the ball
Code: Select all
directional_velocity=10; //this is the desired speed
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: pong problems.

Postby Squirrelman » Sat Apr 19, 2008 2:56 am

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?
Squirrelman
 
Posts: 12
Joined: Tue Mar 25, 2008 7:00 pm
Score: 0 Give a positive score

Re: pong problems.

Postby Game A Gogo » Mon Apr 21, 2008 12:15 am

if the object's velocity is greater then the depth of the object that it will collide with, it will go trough
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron