I’m trying to make a text effect where on every frame the textfield increases in size and decreases in opacity. I’m using the scaleX and scaleY properties of my dynamic textfield to enlarge, but it’s doing so keeping the left registration point fixed. I want to make it scale up radially outward, or with the center point fixed. Can anyone tell me how to do this?
Share
You can easily create a wrapper for the
TextField(i.e. a Sprite containing theTextField) to enforce the registration point to the middle. If the TextField is dynamic make sure it’sautoSizeis set toLEFT. Thereafter you can just set it’sx/yposition to-textField.width*.5/-textField.height*.5. Of course the scaling should be applied to the parent.