Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: lallous on October 14, 2014, 11:20:33 AM

Title: Scale Sprite to Fill Screen on Click
Post by: lallous on October 14, 2014, 11:20:33 AM
Hello Fellow Devs,

I am trying to come up with the most efficient way to have a sprite fill the screen when clicked no matter its position.

I have attached a small image to explain what I am trying to do. Obviously I will be using this for animation purposes.

Thank you for your help,
Title: Re: Scale Sprite to Fill Screen on Click
Post by: ArenMook on October 14, 2014, 03:20:51 PM
Given the bottom-left corner pivot, tween the widget's position from wherever it is to the screen's bottom-left corner, and at the same time tween the widget's width and height from whatever it is to screen's width and height.
Title: Re: Scale Sprite to Fill Screen on Click
Post by: lallous on October 15, 2014, 03:44:18 AM
Thanks Aren. I will give it a shot.