Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to record an objects X Y position?
- NMario84
-
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.
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
-
1000+ posts
How to record an objects X Y position?
Last edited by Thingied (June 29, 2021 20:01:50)
- FoxCodezStuff
-
100+ posts
How to record an objects X Y position?
Hope this helped!
Last edited by FoxCodezStuff (June 29, 2021 20:04:40)
- -MyNewAccount-
-
1000+ posts
How to record an objects X Y position?
() of () sensing block to do that.That's the block you should use. You can find it in the sensing category You can use the

Hope this helped!
@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
-
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….
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
-
2 posts
How to record an objects X Y position?
Dude need help HEHHEHEHEH
- Discussion Forums
- » Help with Scripts
-
» How to record an objects X Y position?