bouncing ball

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

motocross95

Thread Starter
Joined
Oct 30, 2001
Messages
110
I can make a ball bounce around the screen by simply adding or subtracting 1 to the x and y coordinates and what not. It's not too difficult. What is difficult for me however is to make a ball bounce at different angles. Because by simply adding or subtracting 1 it's always at a 90 degree angle. This will be worked into a game of pong, but can anyone help me with this please?
 
Joined
Mar 18, 2001
Messages
1,741
Sarcasm may not help your cause here...

I have the code you are (were?) looking for. If you still
want/need it, I'll try to put together a simple example.

Cheers, Mac :)
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top