[SOLVED] How do I Position the Child Object in a Container?

Get help using Construct 2

Post » Tue Sep 30, 2014 12:33 am

I am creating a custom Sprite Button by creating two object types:
    Sprite = MyButton
    Text = MyButtonText

When I make the Sprite a container for the Text object the issue is when I create a new MyButton the MyButtonText is misaligned or off-center.

Image

Hope this is an easy problem to fix.

Thanks.
Last edited by Vanguard on Tue Sep 30, 2014 11:54 pm, edited 1 time in total.
B
3
Posts: 4
Reputation: 183

Post » Tue Sep 30, 2014 12:47 am

SOLUTION: The Text object had a Hotspot Property.

The Hotspot was set to Top-left which places the Text objects Top-left corner in the center of the Sprite object.

I set the Hotspot to Center and now it behaves correctly.

Image

Should have played with this more before posting.
B
3
Posts: 4
Reputation: 183


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, wizdigitech, Zamargo and 13 guests