Imagine everything below the red box is masked off. I need each new chat to land in that box. I still want it to be random in terms of when it moves, but I need it to land in that box every time....otherwise when it's masked off the newest message will be slightly cut off.
I thought setting the minDist and maxDist both to 50 would make it move up the same amount every time but no such luck.
Appreciate any suggestions on how to tweak this script or rebuild a new one. Thank you!!
I figured it out...I must sheepishly admit that the script worked perfectly. The problem was that I created the chat scroll by eye, and in order for it to work with this script, the messages need to be perfectly spaced.
Follow up request though...is there something I could add to this script so that instead of the scroll jumping right to the next position, it eases into place? So instead of it changing position in one frame, it actually slides in to position?