A1VBCode Forums

MEMORY GAME


http://www.a1vbcode.com/vbforums/Topic26911.aspx

By imkoala - 1/30/2009

how can i show the pictures for 5 seconds then flip it back to show the back part of the card to continue on the game proper.

i managed to use 2 timers but the second timer did not run as I want.



here are the codes:

Private Sub Timer1_Timer()

Image1.Visible = True

Image2.Visible = True

Image3.Visible = True

Image4.Visible = True

Image5.Visible = True

Image6.Visible = True

End Sub



Private Sub Timer2_Timer()

Picture1.Visible = True

Picture2.Visible = True

Picture3.Visible = True

Picture4.Visible = True

Picture5.Visible = True

Picture6.Visible = True

Timer2.Enabled = once

End Sub



ANOTHER PROBLEM:

how can I make the two pictures stay if they matched then flip back if they don't?

by using tags? how?



PS



I'm using VB 6 just as our computer teacher asked us.

Please tell me what's wrong with what I did.



Help me please! BigGrin
By imkoala - 2/2/2009

thanks!