I have an fsm spawning a game object at random points...
it stores that location.. for example... -1.4, 133, 0
this is a 2d game, so i want that object to now tween along the x axis... for example...
ping pong from -1.4, 133, 0 (where it spawned) and 1.4, 133, 0
is there a way to use an action to get the location to tween to as a negative of the x coordinate?
I tried using this...
but that just breaks the syntax and makes it all 0,0,0... (pic not of runtime... i know there isn't a string to change it to in the pic but I get a variable at runtime)
How could I do this?