Sign in to follow this  

Making a pong clone need assistance!!

This topic is 4713 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Greetings... I am trying to make a pong clone. I am having trouble getting the ball to move again after it resets itself. As of right now there is collision off of the top and bottom of the screen making the ball bounce back. When the ball hits the left or right of the screen it resets itself back into the center. After that it no longer moves... Any assistance would be greatly appricated. Thanks!!

Share this post


Link to post
Share on other sites
when you reset the ball to the center position also reset the velocity. Also reset the fact that there has been a collsion. Do you have two different sets of variables for the position, one for the graphics and one for the ball positio, make sure to reset both.

If this doesn't help then post the code.

Share this post


Link to post
Share on other sites
reseting after goal? if i am not wrong just make a speed value speed_max and after reseting position find random X and Y speeds, then start moving it. you can use a indicator like movement to stop the ball. hope helps..

Share this post


Link to post
Share on other sites

This topic is 4713 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this