我一直在为学校制作《太空侵略者》游戏,而且我完成了大部分的工作。我的问题在于我的子弹毁了。当它击中入侵者时,该入侵者被杀死,子弹似乎被摧毁,但子弹继续并击中其路径上的任何其他入侵者。我一直在使用此代码...
If bullet.Bounds.IntersectsWith(picInvader1.Bounds) And blnInvader1Alive = True And blnBulletExist = True Then
Me.Controls.Remove(bullet)
timBulletMovement.Enabled = False
blnBulletExist = False
blnInvader1Alive = False
picInvader1.Visible = False
picInvader1.SendToBack()