The problem is in the script. You're changing the room before the room transition code is used, and before the variable 'facing' is set. SO firstly, you need to put the room_goto() part at the end like this;
//argument 0 = players x in new room
//argument 1 = players y in new room
//argument 2 = new room
//argument 3 = transition_kind
//argument 4 = players direction to face
xx = argument0
yy = argument1
transition_kind = argument3
facing = argument4
room_goto = argument2
The next problem is that all of the variables you just set (xx, yy, facing) are local variables, which cannot be used in another room. I'm assuming that when you go to the new room, you want to place the character at xx, yy so that he's facing the 'facing' variable? Well to do this, all you'll have to do is make them into global variables, both in the script and the that's used in the new room.
//argument 0 = players x in new room
//argument 1 = players y in new room
//argument 2 = new room
//argument 3 = transition_kind
//argument 4 = players direction to face
global.xx = argument0
global.yy = argument1
transition_kind = argument3
global.facing = argument4
room_goto = argument2
Then, when you get inside the room, do something like this;
Character=instance_create(global.xx, global.yy, Character)
Character.facing=global.gacing
Hope it helps,
Scotty
Edited by hotshotscott, 28 March 2010 - 04:18 AM.