Character won't move to a different room!

Started by Femme Stab Mode >:D, Thu 12/06/2003 10:27:17

Previous topic - Next topic

Femme Stab Mode >:D

Iteract hospot
player- go to a different room (at specific co-ordinates) (8,130,190)
I got this programed in but the character just moves to the specified location in te room that it;s in, which is 3. I tried renaming rooms but that didn't help. What the hell is happening?
NANANANANANA ASSHOLE!

danny*

#1
you mean that you script this: NewRoomEx(3,130,190);
and it's not working?
(and since you want your char. to move to room 3,what is this 8 doing there?)

Femme Stab Mode >:D

No, I want the character to move FROM room 3 to room 8. I didn't use NewRoom command I just selected that from a drop down list and put in the values.
NANANANANANA ASSHOLE!

evilspacefart

I remember asking this same question once.
Here goes:

character[CHARID].room = 8;
character[CHARID].x = 130;
character[CHARID].y = 190;

CHARID can be the script name of the character you want to move. ie, ROGER, EGO...

Gilbert

Hmmm in that case I think there may be a bug in the engine, though I don't have enough info for that.

Was the character the initial one the game started in or it had been changed somewhere (via SetPlayerCharacter()?), I'm afraid of *something*.

spook1

Imho I think that using NewRoomEx(roomnuber, x-coordinate, y-coordinate) is the clearest command to go to a new room. This way you can control the whole room-transition.
You can program such a thing by selcting from the dropdown menu: runscript.
The click "edit script" and type in the script:

NewRoomEx(8, x-coordinate, y-coordinate)

Note: topleft of your window is 0,0

I had trouble with the dropdown command also, not knowing exactly where the character will show up.

SMF spam blocked by CleanTalk