Here a example of how to stop the Monkey program and show a notify window that can show some information if needed.
Import mojo
Class MyGame Extends App
Method OnCreate()
SetUpdateRate(60)
End Method
Method OnUpdate()
Error "Program stopped here...."
End Method
Method OnRender()
Cls 0,0,0
SetColor 255,255,255
DrawText "Error Message example.",0,0
End Method
End Class
Function Main()
New MyGame()
End Function

No comments:
Post a Comment
Note: Only a member of this blog may post a comment.