Discuss Scratch

NMario84
Scratcher
1000+ posts

How to record an objects X Y position?

Is there like a way to record an objects X Y position without needing a variable to bind to?

Like for example. “When (right arrow) key pressed -> Change X by (20)” ->“Forever –> Set Variable A to X position of Object”

Here, I would use the variable on 2nd object, while determining the X position of the FIRST object without any variable, if that makes any sense..

I'm basically trying to bind, or position one object on to the other on the same coordinates.
Thingied
Scratcher
1000+ posts

How to record an objects X Y position?

You can use the () of () sensing block to do that.
...ofObject

Last edited by Thingied (June 29, 2021 20:01:50)

FoxCodezStuff
Scratcher
100+ posts

How to record an objects X Y position?



whenclickedforeversetX postosprite'sxsetY postosprite'sy

Hope this helped!

Last edited by FoxCodezStuff (June 29, 2021 20:04:40)

-Kryptonite-
Scratcher
1000+ posts

How to record an objects X Y position?

whenclickedforeversetX postoy positionofSprite1setY postox positionofSprite1

-MyNewAccount-
Scratcher
1000+ posts

How to record an objects X Y position?

Thingied wrote:

You can use the () of () sensing block to do that.
...ofObject
That's the block you should use. You can find it in the sensing category

FoxCodezStuff wrote:

whenclickedforeversetX postosprite'sxsetY postosprite'sy

Hope this helped!

-Kryptonite- wrote:

whenclickedforeversetX postoy positionofSprite1setY postox positionofSprite1


@NMario84 said that he/she doesn't want to use variables

(Reporting to be closed - topic resolved :])

Last edited by -MyNewAccount- (June 29, 2021 22:02:30)

NMario84
Scratcher
1000+ posts

How to record an objects X Y position?

Actually, as I said I don't want the first object to have variables.
The second object will use variables recorded from first objects X Y location.

Well whatever, I think I got my answer somehow. I am a guy, so….
SuperlabProductions
Scratcher
2 posts

How to record an objects X Y position?

Dude need help HEHHEHEHEH
FoxCodezStuff
Scratcher
100+ posts

How to record an objects X Y position?

no necropost please

Powered by DjangoBB