Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to tell a clones y and x position!
- DaBestCoding
- Scratcher
31 posts
How to tell a clones y and x position!
Im making a game that needs clones to tell their individual X and Y positions
But these blocks:
But these blocks:
(x position)
(y position)
Only Looks At The Parents Position, Not A Clones. Someone Please Help Me Out!
Last edited by DaBestCoding (Oct. 12, 2019 17:18:27)
For a amazing FE2 remake, go check out Flood Escape 2: Reborn now! Feedback is appreciated!
Please note that project is still in development, and bugs may occur.
- deck26
- Scratcher
1000+ posts
How to tell a clones y and x position!
No, each clone has its own values. But if you display on screen it will display the sprite's position.
- DaBestCoding
- Scratcher
31 posts
How to tell a clones y and x position!
what do you mean?
For a amazing FE2 remake, go check out Flood Escape 2: Reborn now! Feedback is appreciated!
Please note that project is still in development, and bugs may occur.
- mstone326
- Scratcher
1000+ posts
How to tell a clones y and x position!
Here is an example using lists to keep track of clones xy positions. Create a “for this sprite only” variable for x and for y. Also give each clone an id (for this sprite only). then you can track each x y in a list by their id. Hope this helps
https://scratch.mit.edu/projects/216048262/
https://scratch.mit.edu/projects/216048262/
High School Athletic Director / Middle School Tech Teacher / High School Baseball Coach
Kung Fu by Nintendo 1984 - https://scratch.mit.edu/projects/369994801/
Taco Defense - Speed Typing - https://scratch.mit.edu/projects/316795450/
Halloween Boss Battle - Taking Back our Woods - https://scratch.mit.edu/projects/257155118/
Almost Pong - https://scratch.mit.edu/projects/656276979/
Studio - My Best Projects - https://scratch.mit.edu/studios/4125978/
Forum Help Project Examples - https://scratch.mit.edu/studios/4133335
- DaBestCoding
- Scratcher
31 posts
How to tell a clones y and x position!
No, each clone has its own values. But if you display on screen it will display the sprite's position.
can you give me and example of code so i can tell a clones X and Y position?
For a amazing FE2 remake, go check out Flood Escape 2: Reborn now! Feedback is appreciated!
Please note that project is still in development, and bugs may occur.
- deck26
- Scratcher
1000+ posts
How to tell a clones y and x position!
@mstone326 just did. You could also get a clone to say its position to show that what I said is true - how you use the values is up to you but they're there..No, each clone has its own values. But if you display on screen it will display the sprite's position.
can you give me and example of code so i can tell a clones X and Y position?
- Locomule
- Scratcher
1000+ posts
How to tell a clones y and x position!
Use lists, one for X and one for Y. If you need to know specific clone locations give each clone a unique ID and have each clone write to the list entry matching its ID
- Epicgamer_26
- Scratcher
40 posts
How to tell a clones y and x position!
When I start as clone tell x y or set (variable) to (x) and another to (y)
when green flag clicked
forever
if <<[reading this] = [true]>> then
say [Follow me right now]
end
end
- chineseexplorer
- Scratcher
4 posts
How to tell a clones y and x position!
when green flag clicked
say [How do you indicate X and Y of variable in scratch?] for (2) secs
- deck26
- Scratcher
1000+ posts
How to tell a clones y and x position!
If you have a question please create your own new topic rather than necroposting.when green flag clicked
say [How do you indicate X and Y of variable in scratch?] for (2) secs
- scooby_joe
- Scratcher
15 posts
How to tell a clones y and x position!
when I start as a clone
go to [ v]
- -Zaria-
- Scratcher
1 post
How to tell a clones y and x position!
Define clone at x ; y :
Define Got to…
Go too…
createclone
Define Got to…
Go too…
createclone
- Discussion Forums
- » Help with Scripts
- » How to tell a clones y and x position!