Results 1 to 2 of 2

Thread: Memory-code help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2007
    Posts
    99

    Memory-code help

    im trying to make the game memory. i have 16 shapes with two matching. each shape is covered with a command button. everything is array. how do i only open two colors and if the colors dont match how does it reset automatically?

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: Memory-code help

    One way:
    Use a counter, a the start Counter=0
    first click (only one shape visible) Counter=1
    second click (you know, two shapes visible) counter=2
    If counter=2 check if both shapes visible are the same (do the neccessary stuff here), else (the shapes are not the same) make the shapes unvisible again and set counter=0.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width