[fmx] generic function to move objects

Alright so… I really don’t know the best way to approach this. I had a LOT of code that I thought could be generalized into a function. I don’t know how to explian it… here is the code:

i attached it…

I know it’s a lot of code… I just… I don’t know what to do with it anymore! When it was in a bunch of small functions, it worked (sort of) just seemed reallly messy and annoyed me. Anything to improve this is much appreciated! Oh btw its causing the hero to jsut go to 0,0 and then a hit symbol appears there, and then nothing happens, the hit doesnt even dissappear. If you have a better way… I would love one.