changing rooms

Started by antomatic, Thu 25/12/2008 09:51:45

Previous topic - Next topic

Creator

#20
It's saying "Unidentified symbol 'y'" Because this is what you have:

Code: ags

function hHotspot6_Interact()
{
   if (door_unlocked) player.ChangeRoom(2, x, y); // The letters in the brackets of the change room function are the problem here.
   else player.Say("The door is locked.");
}


Change those to the coordinates you want the player to teleport to in room 2.

E.G:
Code: ags

function hHotspot6_Interact()
{
   if (door_unlocked) player.ChangeRoom(2, 160, 140);
   else player.Say("The door is locked.");
}

antomatic

Quote from: antomatic on Fri 26/12/2008 16:00:44
ok ive managed to sort hat ouyt but its saying: undefined sybol y

whats that all about?

EDIT: ive figured it out. but in the game its not letting me use the door

SMF spam blocked by CleanTalk