Hi all, hopefully you can help me with this.
I have a sprite (A) that I want to move between two X positions on the layout (B, the starting point and C, the ending point).
That's easy enough to do with lerp, however, I have a global variable that I want to tie into these two positions.
When I press a key I want to add a number to that global variable, say 20 for example and have the sprite, A, move SMOOTHLY 20% of the way between points B and C.
Basically I want B to be 0% and C to be 100% but I'm not sure how to write that expression wise.
Thanks for any help :)