• Post Reply Bookmark Topic Watch Topic
  • New Topic

Click on button then a second button

 
Cheikh Sow
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So far I can create the buttons, but I can only achieve one button click at a time. I want to be able to click one button and click on a second button; each button will hide a picture then I will need to compare the pics . I am probably not explaining it clearly however this example in this link will give you a more precise idea. http://www.usboomers.com/game/concentration.htm
this is the code I have so far.
Any pointer is appreciated
Thanks


 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> I am probably not explaining it clearly

agreed

looks like what you really want to do is
1) click the first button and set its icon
2) click the second button, also setting its icon, and starting a timer
3) timer checks if icons are the same, if not, after a delay, both icons are set to null
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!