Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DD.RestoreAllSurfaces
#2
In Vanilla MSE, this is done like this:
Code:
' Check if we need to restore surfaces
        If NeedToRestoreSurfaces Then
            DD.RestoreAllSurfaces
            Call InitSurfaces
        End If
In my game, I load the Surfaces again before I do the Restore, I'm not sure why I do this, I did this a long ago and there is no commentary at this part of the code of my game... Here it is:
Code:
If NeedToRestoreSurfaces Then
            Call AddText("Espere um momento...", Red)
            Call InitSurfaces(True)
            DD.RestoreAllSurfaces
            Call AddText("Pronto.", White)
        End If
Ignore the two AddText()...
This parameter True is a thing I did just so if it is true no window will be show when calling InitSurfaces, since there is needed a few when the game really starts.
I'm not sure if this can help you out with exactly this problem but maybe it will. Good luck!
BTW: AVATAR RLZ!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)