I need help with two rooms

Started by Ibrahim9, Sat 03/11/2007 16:49:51

Previous topic - Next topic

Ibrahim9

Hi, this is my first post, I made two rooms and the first one works perfectly, but when i get into the second room, I start at X: 160 Y: 160 like in my first room. Please tell me how i change that? :'(

Akatosh

Look up the player.ChangeRoom command in the manual?

Ghost

To be more precise, the player.ChangeRoom commands takes three parameters: Number of Room (must be given) and the x / y coordinates (can be given). So to transport your character to Room 2 at, say, x 50, y 220, you would write player.ChangeRoom(2, 50, 220).

Sorry, just wanted to show that I know the manual by heart  ;D

Ibrahim9

umm...haha. Kind of embarassing, where do i find the player.ChangeRoom command?

Ashen

In the Script editor.
You have to select a 'Run Script' interaction, and type it in there. Since I'm assuming you're using the Interaction Editor and 'Player - Go to a different room', I'll give you two pieces of advice: 1) Don't. Seriously. Skip the IE, and start using script as soon as possible. The IE has been scrapped in the version currently in beta (3.0), which means soon newcomers will have no choice but to use script from the outset and I think that's a good thing. But enough of my IE hatred. 2) if you insist on using the IE, try 'Player - Go to a different room (at specific coordinates)'. It's the next one down the list and lets you set where you want the player to arrive without having to use scripting.

If you're already using that, it should be working, and you'll need to tell us exactly what you're doing (what the interaction is, how it's triggered, etc) before we can tell what's wrong.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk