playMaker

Author Topic: Ugui move buttons  (Read 2050 times)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Ugui move buttons
« on: March 16, 2016, 09:58:47 AM »
Hi,
I was reworking a old game i made using ugui, but i am a bit stuck now on how i should do the move animation.

Here is a video from the game and @1:35 you can see the buttons moving.
they are random moved.


So i need to switch the position from 2 buttons randomly.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Ugui move buttons
« Reply #1 on: March 16, 2016, 11:21:04 AM »
i think i can do something with the anchored positions and tween them

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Ugui move buttons
« Reply #2 on: March 17, 2016, 10:09:05 AM »
Hi,

 yes, using anchor will allow you to do this, also after a talk with EasyTouch author the other day, I discovered he made a very interesting asset to animate UI elements.

https://www.assetstore.unity3d.com/en/#!/content/29107

I don't think it has PlayMaker support, but the api is very simple, AND he made a lot component with simple User interface to set them up, so you might get away with most of it without coding, but just drag and drop as usual in Unity.

Bye,

 Jean

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Ugui move buttons
« Reply #3 on: March 18, 2016, 02:15:34 PM »
Hi,
I will check it out for one of my next projects :)

I did every thing already with animator on this project.

I had to use set and get RectTransform Anchor Min and Max
and made 2 new action combined min and max into 1 action.

should i add them to the EcoSystem?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Ugui move buttons
« Reply #4 on: March 24, 2016, 03:31:51 AM »
Hi,

 Yes :) Many Thanks for your contributions!

Bye,

 Jean