This site requires JavaScript, please enable it in your browser!
Greenfoot back
FJacobs
FJacobs wrote ...

2023/2/25

How to Find Coordinates in the Scenario?

FJacobs FJacobs

2023/2/25

#
Hello, first post here. I'm wondering if there is a way to find coordinates in the world itself, not by using programming. This is so I can set locations of objects without having to guess where I want them 100 times. Thanks!
danpost danpost

2023/2/25

#
FJacobs wrote...
I'm wondering if there is a way to find coordinates in the world itself, not by using programming. This is so I can set locations of objects without having to guess where I want them 100 times
First, place the actor in the world where you want it. Then, right click on the actor and select "Inspect" from the pop-up menu. You will be able to find the x and y location values from there that you can then put in your code. EDIT: On second thought, easier would be to place all your actors in the world where you want them and select "Controls>>Save the world" from the menu bar. The code will automatically be put in your code for you. Note that you should remove all codes attempting to place those actors in your world first. Also, note that for any actors that you keep references to, you should do the inspection steps and add the code yourself (you could do the saving way, but you would still have to edit the created code to work properly).
FJacobs FJacobs

2023/3/2

#
Thank you so much! This helped a bunch, and saved a lot of time.
You need to login to post a reply.