Page 1 of 1

IM STUCK [C++ BEGINNER]

Posted: December 1st, 2021, 11:12 pm
by XCout13
I've been doing the Tutorial 13 Homework like a lot right now. I understand the purpose of the code and I swear I followed Chili's Homework Solution. But there is something wrong with my code, it just crashes every time I press enter on the title screen. I've done this homework so many times now but, the same issue just keeps happening. Can somebody please help me?

Re: IM STUCK [C++ BEGINNER]

Posted: December 4th, 2021, 2:21 pm
by Username456
I think the poo and the dude might be drawing outside the window.
Check the part of your code that is dealing with collision of boundary.

Re: IM STUCK [C++ BEGINNER]

Posted: December 8th, 2021, 12:56 am
by XCout13
The poos and the dude works fine. My only issue is when I add the code for the randomly generated goals, it just crashes whenever I press enter on the title screen. Can I ask you to check my code?

Re: IM STUCK [C++ BEGINNER]

Posted: December 21st, 2021, 8:47 am
by albinopapa
This problem is usually caused by invalid X and Y values in something you're drawing. It's a good idea to start with the debugger to see if you can figure out what went wrong. If you still can't find the issue, you can always post your project either a ZIP/RAR file here or a link to your project's GitHub repository.