playMaker

Author Topic: Ugui Moving Buttons  (Read 366 times)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2280
    • View Profile
    • jinxtergames
Ugui Moving Buttons
« on: October 31, 2016, 08: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.



600

  • Sr. Member
  • ****
  • Posts: 493
    • View Profile
    • Car and Traffic Playmaker assets
Re: Ugui Moving Buttons
« Reply #1 on: October 31, 2016, 10:03:03 AM »
I use Rect Transform Set Local Position / Rotation with interpolated/animated values.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2280
    • View Profile
    • jinxtergames
Re: Ugui Moving Buttons
« Reply #2 on: November 01, 2016, 08: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.