Skip to main content
Participant
March 16, 2022
Question

Move location of shape/image based on length of text

  • March 16, 2022
  • 1 reply
  • 178 views

I have text that I need to be left-justified that will change in length.  I have a vector graphic sitting to the right of the text, and I'd like it to keep a consistent distance from the end of the text string.  Therefore, it will need to move right or left depending on how long the text is.


What's the best way to do this? 

This topic has been closed for replies.

1 reply

Mylenium
Legend
March 17, 2022

There's literally hundreds of tutorials out there explaining how to use sourceRectAtTime() to resize an underlying background box or to place stuff around text. Just pick whichever one is most easy for you based on a simple web search.

 

Mylenium

Participant
March 17, 2022

Thank you very much! I had done a google search with no sucess.  Now that I know what to search for, all good!