Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Several editor questions
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#3
RE: Several editor questions

At the bottom left of the screen in the editor, there is snap grid options. There you can edit how much snapping you want between each piece. There is also an anchor button there, it toggles whether you want to snap the objects to the grid or not. The monster in the room, requires some scripting. It needs to have path nodes that direct the monster.

This is how you script it, in a function you create, when either the player interacts with an object, collides with an object, or just a plain timer from the time the player starts playing, or just plainy automatic.

void OnStart()
{
Function01();
}
void Function01()
{
AddEntityPatrolNode("MonsterName", "Node01", 2, "");
}

In the editor, you must go to the "area" category on the right side of the editor screen and in the dropbox once you click it, go find "PathNode", and place it where you want the monster to go once the function is taken in effect. The "MonsterName" is the name of the monster in the editor, the "Node01" is the name of the path node for the path node in the editor, and the "2" is the time between each point it goes to. So yes, you can add more than one path node and patrol node code line. Once the monster completes going to each path node, the monster will dissapear by itself. I hope this has helped you. Good luck. Smile

05-03-2011, 03:09 AM
Find


Messages In This Thread
Several editor questions - by BlueFalkon - 05-03-2011, 02:30 AM
RE: Several editor questions - by Tanshaydar - 05-03-2011, 03:09 AM
RE: Several editor questions - by Kyle - 05-03-2011, 03:09 AM
RE: Several editor questions - by ricky horror - 05-03-2011, 03:09 AM
RE: Several editor questions - by Kyle - 05-03-2011, 03:11 AM
RE: Several editor questions - by BlueFalkon - 05-03-2011, 03:58 AM
RE: Several editor questions - by Kyle - 05-03-2011, 04:02 AM
RE: Several editor questions - by Roenlond - 05-03-2011, 07:08 AM



Users browsing this thread: 1 Guest(s)