MoveCharacterDirect error

Started by Kinoko, Fri 23/01/2004 14:24:09

Previous topic - Next topic

Kinoko

I'm trying to start creating my intro sequence, so I'm testing a few things. I've written a MoveCharacterDirect function into the script, but when I try to run it, it tells me the character isn't in the room. According to what I've put in the individual character settings, he is (along with EGO)... am I missing something? Do I have to set a function in the script manually putting this character into the right room?

I'm also a little unsure of exactly where in the script I should be writing my intro sequence functions. Could someone tell me exactly where I should be writing them? Right now, I'm putting them after function game_start. Why do I have the feeling my two problems are related?

Ishmael

I'd code intro sequences to room scripts, "Player enters screen (after fadein)" mostly... as I did with MRC. The problems are related, if I understood correctly... The engine tries to move the character in room -1, ie. nothing, where the character is not.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Kinoko

OK, thanks.

Let me just see if I have this straight so I don't go and screw something up and come back here crying.

If I want my game to start with an intro sequence in say, room 3, I should put the intro code directly into the individual room script.

If I want the characters to all be in the room when the game starts, exactly which line of code should I place the intro codes before or after?

Scorpiorus

#3
Quote from: Kinoko on Sun 25/01/2004 06:04:32If I want my game to start with an intro sequence in say, room 3, I should put the intro code directly into the individual room script.
Yeah, in that room after fade in.

QuoteIf I want the characters to all be in the room when the game starts, exactly which line of code should I place the intro codes before or after?
You can set that room's player enter screen but before fade-in with character[].room variable:

//room script: player enters room before fade-in

character[MAN].room  = 3;
character[HERO].room = 3;
character[GUY].room = 3;

will place characters MAN, HERO and GUY into room #3

~Cheers

SMF spam blocked by CleanTalk