Problems...

Game Editor comments and discussion.

Problems...

Postby Editor » Fri Apr 22, 2005 7:43 pm

I got a few problems using Game Editor. I want to make it so that the game can be restarted if my main player gets destroyed, and the game stops if I say "You win!".

So I decide to use a code like this. The game is meant to stop if the player actor touches a certain gem (the "Ruby"). So I've put on a collision command for when it does this, and in Script Editor I wrote:

SuspendGame;

But I get the following error (in this exact wording):

Code: Select all
Warning: Line 1: Please try use a function without arguments. This function will not execute.

There are some errors in this Script but are not fatal. Proceed anyway?


Any help?
Game Editor is great... If only I could afford the full version...
Editor
 
Posts: 20
Joined: Fri Apr 22, 2005 7:32 pm
Score: 0 Give a positive score

Postby Just4Fun » Sat Apr 23, 2005 3:34 am

SuspendGame is a function so try using the parenthesis.
Like this: SuspendGame();

Remember too, that this function is used to pause a game (recieve no events) not to end it.

HTHs...
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby Editor » Sat Apr 23, 2005 1:33 pm

...Which, I believe, is the same as PauseGameOn, except that there is no pause menu...

Oh so its one of THOSE Commands. I should've realised, being quite familiar to C. Ill test this out.

I am familiar to C thanks to training in programs similar to it. In fact here's part of a program I've been doing in C:

{
#define LEFT OUT_A
#define RIGHT OUT_C
Wait (SENSOR_B);
Wait (250);
On (LEFT+RIGHT);
FOLLOWLINE();
}

But even with this knoledge I can get a bit mixed up so I'm glad there are people here who are happy to help.
Game Editor is great... If only I could afford the full version...
Editor
 
Posts: 20
Joined: Fri Apr 22, 2005 7:32 pm
Score: 0 Give a positive score

Postby ingsan » Sat Apr 23, 2005 3:48 pm

Hello Editor !

To Reset game after collision to RUBY :
On Event "Collision" > Script :

    LoadGame("yourGame.ged");

To End game after YOU_WIN :
Create a Timer so that it doesn't immediately ends.
On Event "Timer" > Script :
    ExitGame();


:)
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest