Something else I noticed...changing the drop targets to fire the hit events after the animation is done may have broken something I was trying to do. In my table I have two different-colored balls (the normal silver ball and a gold ball), and I want the targets to score double points when hit by the gold ball. I set a ball object to ActiveBall in the hit event sub depending on the target(s) to check the ball color (ball.Image). Used to be that ActiveBall was set on the hit event itself, and on the hit event it checks the color, and if it's gold, score double the points.
in code it looks like this:
' There are three drop targets in the bank, the hit event subs are the same for each one.
Sub DTHexH_Hit()
If not Tilt then
Set HexBall = ActiveBall
DTHexCount = DTHexCount + 1
DTHexSeq = DTHexSeq & "H"
If DTHexSeq <> "H" Then
HexSeq.State = 0
HexInSeq = False
End If
CheckHex()
PlaySound "TargetDrop1"
End If
End Sub
Sub CheckHex()
If not Tilt Then
If DTHexCount = 3 or (DTHexH.IsDropped=True and DTHexE.IsDropped=True and DTHexX.IsDropped=True) then
If HexBall.Image = "dvogold" Then
AddScore 20000
Else
AddScore 10000
End If
If DTHexSeq = "HEX" Then
AddActiveBonus():AddActiveBonus():AddActiveBonus():AddActiveBonus():AddActiveBonus()
If not XBallThisBIP Then ActivateExtraBall()
End If
DTHexH.TimerEnabled = True
Else
If HexBall.Image = "dvogold" Then
AddScore 4000
Else
AddScore 2000
End If
AddActiveBonus()
End If
End If
End Sub
What I'm finding in this new build is that when the hit event fires, it's now taking a script error saying the ActiveBall is null (it was working fine in previous beta builds of VP 10.1. I was using 2474 and 2522, and I'm now running 2529, and it doesn't work with 2529), and I'm not sure how to fix it. Even if I set the drop speed to some ridiculously high number (I've tried as high as 1000) it's still taking this error intermittently.
Any ideas how I can make this work with the way the drop targets work now or should I just abandon the idea of having different-colored balls altogether?
Take Care
-Neo
VPX Tables Completed: Hextech 1.2, Crazy Cats Demo Derby 1.1; Zone Fury VPX 1.0
"Some say his tears are adhesive, and that the dark outline around his nipple matches the Nurburgring...All we know is he's not the Stig, but rather, the Stig's pinball-playing cousin."