How can I make YBA skill tree movement?

I want to focus a gui in the middle using the parent’s position, something like this:

Thank y’all in advance.

1 Like

I suggest maybe making a surface guide and putting the camera to focus on the selected frame in the surface guy or maybe scrolling the whole thing such as how a scroll frame works on your screen.

1 Like

Thank you for the response! Probably you’re right, YBA uses surface gui (I’m insecure about it) but I personally find it unprofessional at the time of handling it with scripts.

Yeah I was thinking the same thing but said it as a suggesting. Im guessing for the second option just trying to make a triangle method by figuring out the offset from the x axis of the middle to the chosen frame and the offset from the y axis of the middle to the chosen frame, but of course as a reminder try to get the center of the frame for measuring the offset to the center of the screen.

1 Like

Good notices I guess, I did it by setting the background offset to the gui’s opposite offset.

Edit: It’s perfectly working, also thank you for assisting! This is how it works:

1 Like

You are welcome glad to see that my guess would actually work!

1 Like

I’ve replicated that skill tree a long time ago. the system is unfinished but that skill tree movement is there. pretty sure YBA uses actual models as well instead of a gui. here’s the place file:
SkillTree.rbxl (180 KB)

1 Like