Image sprite stuck in top left of its canvas

i am trying to moves my image sprite with my code bloxk, but whatever numberi set for the X and Y using codeblock, it keep staying at the left upper of the canvas. Please help me, im so desperate

this is the app when i use the companion. As you see the joystick is setuck at top left cornet of the canvas

i’ve tried several ways such as giving the exact number, scaling it by the canvas height and width, and scaling it by other component but it still stuck.

You probably wanted to use Canvas1.Height there?
Also does it make sense to have a sprite, which is 15 times larger than the underlying canvas?

Taifun

1 Like

thanks for your response. That’s where the issue come, even i made it 15x larger, the sprite doesn’t even fill the canvas. But after i did some experiment, i found out that i should set the fixed size for the canvas in the designer mode instead of set it automatic. I wonder why…

1 Like