Export problem; works only if game reloads itself

Game Editor comments and discussion.

Export problem; works only if game reloads itself

Postby Steve13 » Fri Mar 10, 2006 8:27 pm

Here is my apology up front for something that is probably a problem of understanding how to set up my code.

And here's my problem.

My game is really a quiz program. It uses text actors and buttons. No critters jumping around or bulleting flying. Everything is layered onto the initial view. I keep it straight by manipulating the zDepth of the text and buttons. I coded almost all of it in the Script Editor. It works fine in the development environment. It exports all right as a Windows executable.

Upon opening the exe, buttons and text actors that should be hidden by zDepth are showing on the screen, and not all of the buttons work.

To diagnose the problem, I added an extra button with a GameLoad function.

So now I can open the exe and the game will work perfectly if I reload the game.

I don't believe that this is a bug. There are very few forum messages about problems with exporting. I think it is bad code on my part -- or good code in the wrong place. For instance, I think Mr. Dark once wrote that if you include code in Create Actor, it may not always work.

I would be happy to provide the code, but I am really looking for an understanding of what I did wrong, rather than a quick fix. This quiz program is really just the basic engine that I will be using for more involved educational products.

And BTW, Makslane, GE may not be meant for quiz programs, but it works well even though I would love a few more text functions.

Steve13
vintage Honda, attitude by Harley
Steve13
 
Posts: 7
Joined: Sat Dec 17, 2005 12:51 am
Score: 0 Give a positive score

Postby The achievement » Fri Mar 10, 2006 8:32 pm

Do you just want to export the game? all you have to do is File>export then type the name of your file, then Windows Execusable. if you are trying to type in the code to export a game because this is really not the place to do it. this is really not the C++ program itself, i still dont know what you mean, and if i dont help you im sorry :lol:
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby makslane » Fri Mar 10, 2006 8:53 pm

If don't works, I will need to see the game to try fix the problem.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest