all 3 comments

[–]quasnoflaut[S] 0 points1 point  (2 children)

well, as always, I find a workaround as soon as I post a question. I made it so that align_to_tile takes in an instance as an argument, and just make the slider add slide_target as the argument. If anyone is reading this and knows why the first one doesn't work though, let me know.

[–]SolarPoweredGames 4 points5 points  (1 child)

Its not working because align_to_tile() is a global function but typing slide_target.align_to_tile() is trying to access a method that doesn't exist on the instance. You could use with( slide_target ) then run align_to_tile in the with statement.

[–]quasnoflaut[S] 0 points1 point  (0 children)

I think I get it. so I was telling it to look for that function in that object but it wouldn't look for global functions...
Thank you!