Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: djaydino on October 31, 2016, 11:47:40 AM

Title: Ugui Moving Buttons
Post by: djaydino on October 31, 2016, 11:47:40 AM
hi,
I am updating one of my older games which used the old gui and HOTween.
I am setting this up now in the Ugui, But i am having problems  with swapping buttons (moving)
how can i move buttons in Ugui?
Here is a short video from my old version moving a button.


Title: Re: Ugui Moving Buttons
Post by: 600 on October 31, 2016, 01:03:03 PM
I use Rect Transform Set Local Position / Rotation with interpolated/animated values.
Title: Re: Ugui Moving Buttons
Post by: djaydino on November 01, 2016, 11:17:28 AM
Hi,
Thanks for the help, i got it to work after a while.

i had some animations on the buttons for when a wrong button is pressed, which will animate an explosion and animate the buttons to 'fly' offscreen.

i had to disable the animator component to move the buttons and enable it again just before the explosion.