Not sure if this is a general or a how do I question, more of a best practices type of question.
I have a chat bar that has a icon (sprite) of the person posting the message before the text.
If one uses a function to space the chat:
call function, create sprite x,y, create text x,y and then loop
create sprite2 & text.height + a spacer (setting the spacing for new sprites and new texts)
the new sprites are created at the original x,y (due to the function happening in one tick and no time for the new x,y or height settings to apply. A loopindex, etc will not work either...same issue as above.)
My question is this, other than doing a function & local variable, thus calling function 2, 3, 4 etc. or by long coding the chat. Is there any other way to get the proper spacing of newly created items?
(Hopefully this question isn't too confusing. I've asked this question before and never gotten a definitive answer.) Regards