Computer Science Canada Can't get a ball to bounce off four sides |
Author: | GabeC99 [ Thu Jan 15, 2015 9:11 am ] | ||
Post subject: | Can't get a ball to bounce off four sides | ||
so basically I need a ball to bounce off four walls in my program and i can make it bounce off one but I cant get it to do it for the other 3. If i try to edit a new code to make it bounce off the second wall it just edits my code for the first wall bounce. Please help!
|
Author: | Tony [ Thu Jan 15, 2015 2:04 pm ] | ||
Post subject: | RE:Can\'t get a ball to bounce off four sides | ||
From your code
when does this loop exit? |
Author: | GabeC99 [ Fri Jan 16, 2015 10:07 am ] | ||
Post subject: | Re: RE:Can\'t get a ball to bounce off four sides | ||
Tony @ Thu Jan 15, 2015 2:04 pm wrote: From your code
when does this loop exit? It doesnt |
Author: | Insectoid [ Fri Jan 16, 2015 1:46 pm ] |
Post subject: | RE:Can\'t get a ball to bounce off four sides |
That's right! So when does the rest of the code execute? |