Canvas Width and ImageSprie location

Hello, Everybody!
Pls help me to understand what is wrong.
Why the Ball_X the first time is 300 but then is 420?
I need it 420 at the beginning.



EXP_2.aia (3.0 KB)

You need to give the canvas time to initialise its size.
Introduce a clock timer with @ 200ms to set the ball position.

If to move some blocks from Screen.Ini block, it will work correctly.

This works for me:

image

image

I see, thank you very much!
For me its enough to set 1ms delay, it works.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.