How Do I Use The "character[EGO].PlaceOnWalkableArea();" function?

Started by , Mon 24/07/2006 21:19:53

Previous topic - Next topic

strife_master

I'm trying to make a game and, due to an unfortunate lack of foresight, seem to be stuck. The rooms i've created have drastically different x,y positions for the floors. I've been looking in the instruction manual and found a character function called "character[EGO].PlaceOnWalkableArea();". I've tried putting it in the room script, but it doesn't work... Can anybody help me?

Khris

You have to put commands like this inside a function.
In your case, "player enters screen (before fadein)" would be the appropriate one.
Go to Room -> Settings, click on the button with the red "i", then double click on said interaction and add a RunScript-action. Click on "Edit script" and enter the command in the window.

But you don't really need this function for room changes. Use the player.ChangeRoom() command which allows you to state coordinates.

Look here for more info:
http://americangirlscouts.org/agswiki/index.php/Scripting%2C_Code_%26_Interaction#Placing_your_code:_more_basics

SMF spam blocked by CleanTalk