Author Topic: OnClick/Press UIButtonScale issue  (Read 4481 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
OnClick/Press UIButtonScale issue
« on: April 18, 2013, 09:14:14 AM »
I add UIButtonScale on all the buttons in the game, but you can't see them work because everytime you press the buttons their made the actions so quick you can't see them work.


So, if I press the button it changes to another screen and I can't see how it changes the button scale.


I should add a "yield Waitforseconds" before the action on the OnClick? or it's a better way to do this?


Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: OnClick/Press UIButtonScale issue
« Reply #1 on: April 18, 2013, 05:35:10 PM »
Press and hold? :)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: OnClick/Press UIButtonScale issue
« Reply #2 on: April 19, 2013, 08:14:37 AM »
That it's a function?
I'm not sure if is that, for example games like Mega Run you can click a button and it's not going to change the screen immediately, first you can see the button behavior.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: OnClick/Press UIButtonScale issue
« Reply #3 on: April 19, 2013, 12:26:21 PM »
No, I meant press on the button -- it becomes bigger. Release -- it gets smaller. If you want to ensure that the entire tween/animation finishes playing then don't react to OnClick. Write your own logic.