NPC to room coordinates...

Started by LordHart, Mon 11/08/2003 23:08:27

Previous topic - Next topic

LordHart

Been looking right through the help file, and i couldn't find what i was looking for, I'm doing a cutscene, where i need a NPC character to appear in a new room, at specific coordinates. The cutscene begins in say, room 1 and then it changes to room 2, and i need the NPC there, after a short wait cycle.

I know that character[ID].room=whatever changes the room they are in, but how do you get the coordinates? I tried using the .x=whatever and .y=whatever, but that didn't work.

Any help greatly appreciated.

scotch

#1
character[ID].room=whatever;
character[ID].x=whatever;
character[ID].y=whatever;

That should work..

If the character is moving at the time I don't think it will though, try putting a StopMoving(Charid) before it all.

LordHart

The character wasn't moving. This is exactly what i used.

character[BEN].room=5;
character[BEN].x=40;
character[BEN].y=110;

Scummbuddy

are you using braces correctly?  you'll probably have to post your code here for us to investigate
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

LordHart

Braces? Umm, i don't know... where do they go? :-[

Scummbuddy

hehe, seems to be your problem then... why dont you go ahead and post the surrounding code, or if its not too much, the whole code, and i can show you what I mean.

actually, read what I did for Darth in this thread.
http://www.agsforums.com/yabb/index.php?board=6;action=display;threadid=7795
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

LordHart

Thanks, but I ended up getting fixed. Thanks for the help anyway mate. :)

SMF spam blocked by CleanTalk