-
Change direction according to value
Hi
Long time user and fan of this Forum but first time posting. I have a problem and I’m hoping someone here can help me. What I am trying to achieve is this. I have a Null in the centre of my screen that is clamped to go 400 pixels to the right and left. I need this null to move an object 200 pixels to the left as it goes 200 pixels to the right and as the null goes from 200 to 400 pixels I need the object to move 200 pixels back to its original position. I was also wondering would it be possible to have it work in reverse as the null moves back to the centre of the screen. I guess something along the lines of the way a lens flare moves only as you approach the edge of the screen with the controller the flare moves back to the centre. I hope this is clear enough. Any help would be greatly appreciated!
All the best
Dan