npc x,y positioning

Started by miguel, Sat 10/05/2003 17:08:29

Previous topic - Next topic

miguel

when moving a npc to a diferent room is it possible to set it´s X,Y positioning?
Im sure it is but I couldn´t find script commands for that;
thanks
Working on a RON game!!!!!

Barcik

you can always use the direct character variables:
character[charnumber].x=12;
Currently Working On: Monkey Island 1.5

miguel

I don´t understand,
I saw NewRoomEx on the help files but it only applyes to the player char
Working on a RON game!!!!!

RickJ

There aren't any script commands.  You just need to manipulate the character's gobal variables directly.  So you need to do the following:

StopMoving(NPC);
character[NPC].room=room_number;
character[NPC].x=xposition;
character[NPC].y=yposition;

miguel

#4
now I get it Barcik (I´m a bit slow) and thanks (again) RickJ!
Working on a RON game!!!!!

SMF spam blocked by CleanTalk