Forum rules - please read before posting.

Remembering lights

Hi Folks,

Just wondering if someone can point down the way of handling
lights.



I need to be able to activate/deactivate a light via hotspot/interacts or
triggers and save their state.



I tried object: visibility but that didn’t seem to do the trick.


On the forums, I have seen a few people suggest send message and another suggestion to
move the light and use the remember transform script. Would these be the best
way to go or is there a preferred method?



Cheers,

Tim

Comments

  • Object: Visibility only affects renderer components such as sprites and models - not lights.

    The Object: Send message Action requires a reciever, and the included Light Switch component can be attached to a Light for it to receive Turn On / Turn Off messages.  In order to save a light's enabled state, a custom Remember script would be required.  Fortunately, the tutorial on this shows covers the case of saving a light's state via a new RememberLight component.

    Alternatively, you could simply move the light out of view by using Object: Teleport and attach the RememberTransform component to save it's position.  Full details of AC's Remember system can be found in Section 9.2 of the Manual.

  • Thanks so much for the reply.

    I think i'll give the Object: Teleport a go and the RememberTransform component.

    I'll let you know if I run into any problem.
    Cheers
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.