Pages: 1
Is there a way to programmatically get the value of my x and y position?
I want to know which side my object is - whether it's at the right, left, or bottom edge of the stage.
Offline
I found it! Yey!
It's in Sensing.
Offline
Actually, you use the (x position) and (y position) blocks under Motion.
Offline
Hardmath123 wrote:
Actually, you use the (x position) and (y position) blocks under Motion.
![]()
If you want to get the position of your own sprite you use the ones in motion or sensing.
If you want to get the position of another sprite, you have to use the block in sensing.
Offline
Right. But he said "my" position, which somehow implies the same sprite's.
Offline
Thank you for the help.
I posted another question regarding a script to repel 2 sprites when they touch.
Offline
Pages: 1