0

How to make circle moving within screen in Pascal?

When the left key pressed, the circle moved left but then disappear from the screen. How to keep it moving within the screen only? This is the Pascal code https://code.sololearn.com/cKDiVDupS0Nu/?ref=app

25th May 2018, 11:16 AM
Kris V
2 ответов
0
>Pascal Now this is a name I haven't heard in a while. Try outputting ScreenWidth() and x to console when you move - maybe ScreenWidth outputs a value too big?
25th May 2018, 11:27 AM
BlazingMagpie
BlazingMagpie - avatar
0
BlazingMagpie the task give me a hint that the edge of the left screen is X0 but im not sure how to use it.
28th May 2018, 7:52 AM
Kris V