could someone help me find the x pos or y pos of a sprite without the other? i need it for a block im making for someone.... ive found 'self referencePosition', and im not sure how to make that work... cause i just need the x and y positions seperately... please help

Offline
poppypaynterscratch wrote:
could someone help me find the x pos or y pos of a sprite without the other? i need it for a block im making for someone.... ive found 'self referencePosition', and im not sure how to make that work... cause i just need the x and y positions seperately... please help
I don't know Smalltalk at all (I'm trying to teach myself it though
) but I guess you could look for the method for the [set x to ()] and [set y to ()] blocks. Then you could work off of that.
Last edited by ScratchReallyROCKS (2010-05-21 21:24:39)
Offline
ScratchReallyROCKS wrote:
poppypaynterscratch wrote:
could someone help me find the x pos or y pos of a sprite without the other? i need it for a block im making for someone.... ive found 'self referencePosition', and im not sure how to make that work... cause i just need the x and y positions seperately... please help
I don't know Smalltalk at all (I'm trying to teach myself it though
) but I guess you could look for the method for the [set x to ()] and [set y to ()] blocks. Then you could work off of that.
already looked, only has it for both coordinates

Offline
nXIII wrote:
self referencePosition x or self referencePosition y
thank you! now i have all that i need for a requested block!
(distance to X
) Y
) )! lol its easy

Offline