---> Posted by anonym @ January 6, 2009 at 5:42 am edit
---> In category: sailorstarspics.com
==================================================[ START ]====
I seem to be having a timer problem with Visual Basic 6. I am currently making a game but I cant ma
nage to get the timers to work and the timers make up A TON of the game. The only problem with it though is that no matter how much I try to change the code or modify it, it always loops into a program crash. I could remove the code between End If and End Sub but then it would only loop once and that wouldn't help me much. I hope you can help me after all I have only been learning Visual Basic 6 for 4 days now. lol Here is the Code I seem to have the most trouble with and is also a timer part.
Private Sub Collision_Timer()
If Person.Top = Coin.Top Then
Coin.Visible = False
End If
If Person.Left = Coin.Left Then
Coin.Visible = False
End If
Collision.Enabled = True
Collision.Interval = 1000
Collision_Timer
End Sub
#If you have any other info about this subject , Please add it free.# |
|
====================================================[ END ]====