Movement from function help please

I’m currently working on a navigation for my new portfolio and the navigation is working quite pitifully and I can’t figure out why passing the name of an object into the function doesn’t allow me to then move it.

the buttons are supposed to move back to their original spot after another button has been clicked.

anybody that can help me I’ll be very greatful for :slight_smile:

edit: and yes, this is just a simple demo to get the problem, I know it looks horrible

is the problem about previous._y ? i guess you wanted something like this.

ah that’s exactly what I wanted, thanks so much! :slight_smile:

you’re welcome!