Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Logging Out
#1
So, I wanted to have a log out button which closes frmMirage and takes you back to frmMainMenu. It works, but frmMainMenu only flashes for a second, then the game closes. I can't seem to find where it's at, but I assume GameDestroy is being called somewhere. I removed it from Form Unload and Form Terminate in frmMirage.

And I recall I similar problem and a similar post like this. Anyone remember what was causing it?
Reply
#2
The gamedestroy code at the bottom of GameLoop. It ends up going to that after you leave the game, so just place it somewhere else.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#3
Ah, yeah. I suppose it makes more sense to just edit how the gamedestroy is handled.
Reply
#4
Yup, then the code isn't inadvertently called.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)