Hi, this is my first post, I didn't find this in the knowledge base so here I go:
I am currently working on my first game, and I have two rooms. I want to make my character move from one room to another, so I create a hotspot with the properties:
(http://img378.imageshack.us/img378/6515/naamloosas8.th.png) (http://img378.imageshack.us/my.php?image=naamloosas8.png) (click on it for better quality)
When I start the game, and I walk into the gate, I get this error:
Quote
in Global script (line 60)
Error: MoveCharacter: Character not in current room
What do I have t do? ???
Please post error messages as TEXT, not screenshots.
Two things to suggest.
Firstly, (as the Interaction Editor says, in the screenshot) try using a Region to trigger the move, not the long obsolete 'Player stands on hotspot' interaction. Use 'Player walks onto region', not 'While player stands on region'. I think the Hotspot interaction is equivilant to the 'While' Region interaction - so it could be being called again after the charater has moved (which is why you're getting that particular error message).
Secondly, is it definitely EGO you want to move? If it's the player character you want to move (which is EGO by default) try using the 'Player - Go to a different room'. (Or better yet, start scriptng ASAP, and avoid the Interaction Editor completely...)
Usually, I'd also ask for the line refered to in the error message. However, I think line 60 of the default Global Script is in on_mouse_click - in this case it's being called because the probelm is with an Interaction Editor event, which has no actual line of code to refer to.
EDIT: OK, I just tried this - the error happens for me AFTER the player changes room, when I try to walk somewhere (I guess that's why it says MoveCharacter in the error message). Is that the case for you? If so, swapping to 'Player - go to a different room' solves it if you're moving the player character, and I'd recommend using the region instead of a Hotspot anyway.