rEaL iGoR
May 12th, 2001, 12:59 PM
I'm sort of confused by something which really bothers me a lot. I've written a tiny game. Not yet complete, but it's under construction. Nevertheless, I've used a timer to control the events:
Public Sub Form_Keypress(KeyCode as Blabla)
Select KeyCode
Case vbKeyUp
Boy.Tag = "Up"
End Select
End Sub
Public Sub Time_Timer()
:)If Boy.Tag = "Up" Then Boy.Top = Boy.Top - 120
End Sub
This is, of course, an incredibly simple adaption of my code. However,
Somewhere in the code, it gets stuck, and my 'boy' won't move. But, if
I insert a breakpoint where I've left a :), and the program breaks,
I remove the breakpoint and continue the program, the boy moves. What's up with that?
Public Sub Form_Keypress(KeyCode as Blabla)
Select KeyCode
Case vbKeyUp
Boy.Tag = "Up"
End Select
End Sub
Public Sub Time_Timer()
:)If Boy.Tag = "Up" Then Boy.Top = Boy.Top - 120
End Sub
This is, of course, an incredibly simple adaption of my code. However,
Somewhere in the code, it gets stuck, and my 'boy' won't move. But, if
I insert a breakpoint where I've left a :), and the program breaks,
I remove the breakpoint and continue the program, the boy moves. What's up with that?