That right there is precisely the cause for this: the fact that you used a scaled position for a shape that is not scaled in the first place. This is why the "corner shape" position doesn't "stick" to the bottom right corner of the background shape, because using a scaled position assumes that the "corner shape" meter is scaled as well, which is obviously not the case in the code you posted.Why does this happen > The new position is calculated (289*#ScaleX#)
What could be the cause here?
So, you have to choose between the two possible solutions, which are obviously one of these:
- scale the corner shape too, by multiplying with #ScaleX# or #ScaleY# the coordinates of the individual shapes from the meter
- don't scale the corner shape, and use negative relative positioning based on the bottom right corner of the background shape
The second is the easiest, and actually applied in the sample code that your code is based on.
Of course, which choice you prefer is entirely up to you, maybe you'd like the corner shape to be scaled too, I don't know...
Statistics: Posted by Yincognito — Today, 9:31 pm