For me is not a problem of option collidable.
When the ball falls below, it is because the ramp is really not collidable.
At first launch of the table, the Select Case starts from
BridgeStep = 0
instead of
BridgeStep = 1 Case 0
When the ramp must be collidabile the BridgeStep = 4 instead of BridgeStep = 5 Case 4
This is my dirty solution.
I added a third Case and a timer set to 0.7 seconds.
Sub CastleGateTimer_Timer
Select Case BridgeStep
Case 0:Controller.Switch(56)=True:bridge.Collidable=False
Case 1:Door1.Move 0, 1, 90:Controller.Switch(56)=False
Case 3:Timer1.Enabled=1
Case 4:Controller.Switch(57)=True:bridge.Collidable=True
Case 5:Door.Move 0, 1, 180:Controller.Switch(57)=False:bridge.Collidable=False
End Select
BridgeStep=BridgeStep+1
If BridgeStep=8 Then BridgeStep=0
End Sub
Sub Timer1_Timer
If BridgeStep<5 Then
BridgeStep=5
Controller.Switch(57)=True:bridge.Collidable=True
End If
Timer1.Enabled=0
End Sub
After a couple of hours of testing I saw that the back image of the Gate1 is not right,
is not upside down.
Hmueck Thanks for the kind words.
Thanks
Max
Edit : I forgot to mention that the Timer1 must have the box "Timer Enabled" unchecked.
Edited by kiwi, 28 April 2013 - 05:52 PM.