Author Topic: Trouble making a bridge.  (Read 11424 times)

0 Members and 1 Guest are viewing this topic.

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
Re: Trouble making a bridge.
« Reply #15 on: July 31, 2015, 04:33:27 PM »
I made a sample project just for you and it does work.

Stupid question: do you call the quest manager initialization code at some point? If the sensor metatable is never initialized, your sensors have no effect.

Zeror

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
Re: Trouble making a bridge.
« Reply #16 on: July 31, 2015, 04:53:03 PM »
I made a sample project just for you and it does work.

Stupid question: do you call the quest manager initialization code at some point? If the sensor metatable is never initialized, your sensors have no effect.
It was not a stupid question. I didn't have quest manager at all. Only a game manager. Code wasn't initialized. Copied that file from your example over to my project.
Got it working right now. Really really thanks for your effort.
« Last Edit: July 31, 2015, 04:57:52 PM by Zeror »

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
Re: Trouble making a bridge.
« Reply #17 on: July 31, 2015, 04:59:05 PM »
Ok nice!

The job of the quest manager is to set up some quest-wide behaviors for entities, like managing all sensors whose name has a particular prefix.
The normal way would be to program sensors on the map script, but sensors that change the layer are so common that it simplifies your life to do it once for all maps.

Zeror

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
Re: Trouble making a bridge.
« Reply #18 on: July 31, 2015, 05:07:11 PM »
Yes, i understand that.

As thanks i will release some more info about my project, in this thread.