Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Classic Visual Basic (VB 6 or earlier) » Game Programming » MEMORY GAME


MEMORY GAMEExpand / Collapse
Author
Message
Posted 1/31/2009 1:13:11 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/2/2009 4:02:42 PM
Posts: 2, Visits: 4
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!
Post #26911
Posted 1/31/2009 9:53:37 AM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: Today @ 11:19:17 AM
Posts: 1,795, Visits: 4,572
Welcome to A1vbcode imkoala

A similar question as been asked before. Have a read card game help and have a look at my Iconcentration.zip.

Keith

http://www.martin2k.co.uk/forums/index.php?act=idx

I've been programming with VB for 14 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
 
Post #26916
Posted 2/2/2009 4:02:42 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/2/2009 4:02:42 PM
Posts: 2, Visits: 4
thanks!
Post #26922
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 6:38pm