Timeline for Why Does the Ball Disappear After Calling move()?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 19, 2014 at 13:57 | comment | added | ronga | @Kareem I was calling getX(ball) directly within gdb (i.e. p getX(ball)), which wasn't working. I have since assigned int x=getX(ball) directly in the code, and called x through p x in gdb, which appears to be working as I'm now able to keep track of ball. | |
Jul 17, 2014 at 14:22 | comment | added | kzidane |
@ronga I'm sorry! How are you calling getX() ?
|
|
Jul 17, 2014 at 14:19 | history | edited | kzidane | CC BY-SA 3.0 |
hyper-linked the links
|
Jul 17, 2014 at 13:17 | comment | added | ronga | Thanks for the tip, it looks like ball is moving all over the place outside the window. Wonder why p get(x) didn't pick it up in GDB. Anyway, that's because I hadn't set borders for ball to bounce off of, which is supposed to be the next step in the pset but didn't get that far as the ball disappeared. | |
Jul 17, 2014 at 9:25 | history | answered | Luke Van In | CC BY-SA 3.0 |