04-10-2024, 08:05 AM
(04-10-2024, 06:52 AM)kevin Wrote: Hi, I think this issue may be because you are using a floating point number for box.y. If you change the line where you increase this value each cycle to the following, the issue of falling through the top line disappears:
Code:box.y = int(box.y + box.speed)
...
It's solved ! Thank you, Kevin
click the image to zoom in