In terms of errors in coding, I have changed what form the start game starts on and it still crashes after 4 forms have been opened/close.
Example: When the start button is clicked on form1, the game will start on forest1, continue into forest 2, and crash when forest 3 opens (the 4th form to open). When I then change it so when the start button on form1 is clicked and open forest2 instead of 1, forest 3 will work fine, but then crash when forest 4 open (once again, the 4th form to open).
Here is some example code of when a form opens (on forest1):
- Code: Select all
Private Sub Form_OnOpen
form1.close
End Sub
And when the form closes (on forest1):
- Code: Select all
Private Sub tmrportal_OnEvent()
If imgheroup.x > 530 then
forest2.opencentered
End If
End Sub
Maybe something is wrong with the code and if that is the case, I will feel silly, or maybe there is just a more effective manner in changing forms, or maybe even a bug. If any can I have some help with this issue? If you would like a copy of the program (as it is too big to upload on the forum) send me your email and I will send the full copy over.
Thanks in advance