Help with actor growth
I want this actor to change it's width size. But when i create a rule to change it's size, the actor will grow on both sides. I only want the actor to grow going to the right. Is there anyway I can do this?
Comments
Decide on your new/final width.
Minus from that the starting width of the actor.
Divide this number by 2.
With this number, add it to the starting X position of your actor.
This final number will be used for the interpolating of the new X position.
Example: Actor is 100 wide. You want to make it grow to 300 pixels.
So 300 - 100 = 200
Divide by 2 = 100
Say your starting X pos is 187. So add 187 to the 100 = 287.
So:
Interpolate Attribute: self.Size. Width To 300
Interpolate Attribute: self.Position.X To 287.
:-)