Page 1 of 1

Dumb question. How do you get the game to close on ppc?

PostPosted: Fri Apr 20, 2007 1:25 am
by MrScience101
Lol, I made a game in 240X320 mode for my pocket pc. Works like a charm! Really an amazing program this is(forgive the yoda talk). But I realized I couldn't quit! I want a button, an x in the top left corner, that when I click on it, it exits the game. What is the script function that does that? I am gonaa kick myself if it is quit();.

PostPosted: Fri Apr 20, 2007 1:49 am
by makslane
Put the ExitGame function in some action, like in a Mouse Button Down.

Code: Select all
ExitGame();

Re: Dumb question. How do you get the game to close on ppc?

PostPosted: Fri Apr 20, 2007 2:12 am
by Sgt. Sparky
MrScience101 wrote:I am gonaa kick myself if it is quit();.

it is close to quit. :)
if you want it to be quit put this in global code,
Code: Select all
void quit()
{
  ExitGame();
}

and when you press the x use quit();
and the game will quit/exit. :D

Re: Dumb question. How do you get the game to close on ppc?

PostPosted: Fri Apr 20, 2007 4:41 pm
by MrScience101
Sgt. Sparky wrote:
MrScience101 wrote:I am gonaa kick myself if it is quit();.

it is close to quit. :)
if you want it to be quit put this in global code,
Code: Select all
void quit()
{
  ExitGame();
}

and when you press the x use quit();
and the game will quit/exit. :D


Mrscience101 *proceeds to kick himself*

Thanks! works great!

PostPosted: Fri Apr 20, 2007 9:19 pm
by Sgt. Sparky
welcome :D

Re: Dumb question. How do you get the game to close on ppc?

PostPosted: Tue Oct 02, 2007 6:23 am
by dan208
I know this is an old post, but man this post made my day :D . Thanks so much!

Re: Dumb question. How do you get the game to close on ppc?

PostPosted: Wed Oct 03, 2007 1:27 am
by Rux
You mean you could make your own scripting language for GE Script using global code? You could make the code and save it, then import it into GE whenever you want?

Re: Dumb question. How do you get the game to close on ppc?

PostPosted: Wed Oct 03, 2007 2:00 am
by Fuzzy
Rux wrote:You mean you could make your own scripting language for GE Script using global code? You could make the code and save it, then import it into GE whenever you want?


Yes. You can write your own functions(using GE's C commands), save them to a file and load them as global code in a later game.

Re: Dumb question. How do you get the game to close on ppc?

PostPosted: Wed Oct 03, 2007 2:33 am
by Rux
Cool. But one question. How can you make a function that you can set a velocity value to or set something like text.(EX1:MoveRightTime(*time*, *velocity*);EXT2:iftxt(*This txt actor must match second txt actor* Playerstext.text, "Hello", Puzzletext.text, "Hello";) I'm sorry if this is complicated, but mabey sparky can figure this out. I know there are other ways to do these effects,but I want to make an easier way. :?