Author Topic: Change position button with effect when i clicked  (Read 5233 times)

eliascanaza

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
Change position button with effect when i clicked
« on: December 28, 2012, 04:46:06 PM »
Helo guys ...
how Change position button with effect when i clicked hover button, this effect wiil be delay or other, or there is a script to this... help me thankss...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Change position button with effect when i clicked
« Reply #1 on: December 28, 2012, 08:29:02 PM »
I'm not sure what you're asking.

eliascanaza

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
Re: Change position button with effect when i clicked
« Reply #2 on: January 03, 2013, 01:24:43 PM »
so.. when i will click on button, the other button will be move an other position ...

dlewis

  • Guest
Re: Change position button with effect when i clicked
« Reply #3 on: January 03, 2013, 05:58:48 PM »
Make a script that implements OnClick(). Have a public variable to your other button as a gameobject (public GameObject otherButton). When OnClick is called then use TweenPosition.begin() and pass in the required variables (What you want to move, where you want to move it and how long it should take).

eliascanaza

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
Re: Change position button with effect when i clicked
« Reply #4 on: January 04, 2013, 11:50:03 AM »
cooool ...  this work cool !! BUT when i click the button A for  button B move=> when i want click on button B this does restart your position ... i don't now... Iwant change position an other position ...  thanksss

eliascanaza

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
Re: Change position button with effect when i clicked
« Reply #5 on: January 04, 2013, 11:56:02 AM »
i use this function ..
  1. TweenPosition.Begin(gameObject, 2f, new Vector3(0,500,0));
« Last Edit: January 04, 2013, 03:02:25 PM by eliascanaza »