I assume you're running a while (!hitTestPoint) on the ground for both of the dots, right? When there's no ground underneath to hitTest, it just runs the loop to infinity. I think you could put<>
<>
if (char.y > 1000) { break; }<>
<>
right after the beginning of the while loop to prevent it. Then again it wouldn't fix anything, just prevent a complete crash.
Well, no, then your char will just be warping downwards indefinitely. Use a for loop instead of a while loop (never use whiles on anything that's !hitTest).
Doodle, sketch, draw, design, fill notebooks with elaborate scenes, funny character designs, and gameplay ideas.
Find your own personal style and run with it. Craft characters and stories that you love.
Enjoy your own work, and don’t be afraid to show it off. Create.