0

I am making an Iphone game, and I would like a button to stop being clickable when the character moves in front of it. Do you know how this can be done?

Horton Jackson
  • 255
  • 1
  • 4
  • 12

1 Answers1

0

You need to identify button's frame whenever character enters. As soon as they hit the frame you need to do [button setEnabled:NO];

Neelam Verma
  • 3,232
  • 1
  • 22
  • 33