0
Completed

Increase/decrease light depending on proximity to light

dpainmusic 5 days ago in Game Creator updated 1 day ago 2

I'm currently working on a project for class. I have characters with spotlights directly on them to indicate when you are hearing their "thoughts." I'd like to change the intensity of the spot light depending on your proximity to the character (light off when you're nowhere near them, light full intensity when you are beside them and hearing their thoughts).

Any suggestions of how to accomplish this are greatly appreciated!

Unity version:
2019.2.12f1
Game Creator version:
Completed

Hi DPainMusic! Sorry for the late reply. This is a very cool idea!

This is one of those cases where a custom Action would be best. Despite having little time, I couldn't resist making and testing this Action :-P Works really nice!

action-thoughts.unitypackage


I'm attaching the Action. Simply add it to your project and add an "On Start" Trigger per each light. Then, add two Actions:

- Light Thoughts: Drag and drop the light and set the max distance (to which the light will have an intensity of zero) and max intensity.

- Restart Actions: To loop this Actions over and over again.


That should be all! Let me know if you have any questions. Cheers!

Oh wow! This is great! Thank you so much. I'm looking forward to getting this implemented in :D