嗨我正在制作一个像舞蹈革命的游戏,但在箭头键中我发生了一个事件,之前vb网停止阅读我的designer.vb所以我将代码重新复制到另一个新形式并再次设计。基本上我想要的是当移动的箭头击中静止的箭头它应该说好并且它工作正常但是有一个完美的击中,其中玩家在事件发生前使用的中间击中了箭头,但现在它不能任何人都可以帮助或建议一个新的想法。
'Perfect Hit
If (RArrowDown.Top = ArrowDown.Top) And RArrowDown.Visible = True Then
TimerMain.Enabled = False
Hit += 1
Score += 33
RArrowDown.Visible = False
Perfect.Visible = True
TimerPerfect.Enabled = True
Combo_Counter += 1
RandomTime_1.Enabled = True
End If
'Good Hit
If (RArrowDown.Top <= ArrowDown.Height + ArrowDown.Top) And RArrowDown.Visible = True Then
TimerMain.Enabled = False
Hit += 1
Score += 10
RArrowDown.Visible = False
Good.Visible = True
TimerGood.Enabled = True
Combo_Counter += 1
RandomTime_1.Enabled = True
End If