Help with making a button

Discussion in 'Public Game Developers Forum' started by MrPenguin9, Nov 21, 2008.

  1. MrPenguin9

    MrPenguin9 Active Member

    Jul 21, 2008
    30
    0
    0
    #1 MrPenguin9, Nov 21, 2008
    Last edited: Nov 21, 2008
    How do you tell it during the button is held down do this, and when you let go of the button do this?

    Thanks so much :)
     
  2. TripleJ

    TripleJ Member

    Nov 25, 2008
    21
    1
    0
    The easiest way is to use interface builder, i think.
    create your actions first (one for when the button is held down and one for when it's let go), then open interface builder and in the connections tab drag the new actions (a blue line will appear) to the button. A popup will then ask you when you would like to apply the action you selected and you can choose between lots of different situations (for instance 'touch up inside' for when the button is pressed.). Hope that helps a bit :)
     

Share This Page