Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support
Sub TimeUpReturn
Action.GoToFrame Action.ReadINI(filename+".room",1,1),1,1
If frametosave = Solid01 Then
Found01=0 and Found02=0 and Found03=0 and Found04=0 and Found05=0 and StartTimer_1=0 and FoundAll_Solid01=0
End If
If frametosave = Solid02 then
Found06=0 and Found07=0 and Found08=0 and Found09=0 and Found10=0 and StartTimer_2=0 and FoundAll_Solid03=0
End If
End Sub
Sub TimeUpReturn
Action.GoToFrame Action.ReadINI(filename+".room",1,1),1,1
If frametosave = Solid01 Then
Found01=0 and Found02=0 and Found03=0 and Found04=0 and Found05=0 and StartTimer_1=0
End If
If frametosave = Solid02 then
Found06=0 and Found07=0 and Found08=0 and Found09=0 and Found10=0 and StartTimer_2=0
End If
End Sub
I'm not using Hide and Disable for the hotspots.
Imari wrote:Removing =True removed the error. The Try Again? hotspot now returns you to the previous puzzle frame, but it does not reset any of the variables.
The
- Code: Select all
Sub TimeUpReturn
Action.GoToFrame Action.ReadINI(filename+".room",1,1),1,1
If frametosave = Solid01 Then
Found01=0 and Found02=0 and Found03=0 and Found04=0 and Found05=0 and StartTimer_1=0
End If
If frametosave = Solid02 then
Found06=0 and Found07=0 and Found08=0 and Found09=0 and Found10=0 and StartTimer_2=0
End If
End Sub
is in the Global Procedures.
Sub TimeUpReturn
select case frametosave
case "Solid01":
Found01=0 and Found02=0 and Found03=0 and Found04=0 and Found05=0 and StartTimer_1=0
case "Solid02":
Found06=0 and Found07=0 and Found08=0 and Found09=0 and Found10=0 and StartTimer_2=0
end select
Action.GoToFrame Action.ReadINI(filename+".room",1,1),1,1
End Sub
Actually, the counter does not start when the frame loads. I have it set to start when the player clicks the start button/hotspot.
Sub TimeUpReturn
frametosave = Action.ReadINI(filename+".room",1,1)
Select Case frametosave
case "Solid01a":
Action.GoToFrame "Solid01"
case "Solid03a":
Action.GoToFrame "Solid03"
End Select
End Sub
Return to Adventure Maker Technical Support and Bug Reports
Users browsing this forum: No registered users and 0 guests