Page 1 of 1

Export problem; works only if game reloads itself

PostPosted: Fri Mar 10, 2006 8:27 pm
by Steve13
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

PostPosted: Fri Mar 10, 2006 8:32 pm
by The achievement
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:

PostPosted: Fri Mar 10, 2006 8:53 pm
by makslane
If don't works, I will need to see the game to try fix the problem.