Ontogenesis Posted January 4, 2015 Share Posted January 4, 2015 Hi all. So I'm new here, bought Leadwerks in the Steam sale. I'm currently working on a small hobby project to get to know Leadwerks a bit better. It's a simple FPS with the gameplay heavily revolving around light and darkness (inspired by the Vashta Nerada). I had a look, and was wondering if there is a way to detect whether an entity, e.g. player, is standing in light or shadows? I can think of a work around e.g. invisible boxes parented to light sources that act as triggers, but it would save a lot of time if there was a way of measuring from player itself. I had a look but found nothing. I should also mention I'm using the Indie version. Any help would be appreciated. Thanks! Quote Link to comment Share on other sites More sharing options...
josk Posted January 4, 2015 Share Posted January 4, 2015 You might want to check out this thread. http://www.leadwerks.com/werkspace/topic/10198-get-shadow-info-for-stealth-game-thief-like/page__hl__shadow Quote Elite Cobra Squad Link to comment Share on other sites More sharing options...
Ontogenesis Posted January 4, 2015 Author Share Posted January 4, 2015 You might want to check out this thread. http://www.leadwerks.com/werkspace/topic/10198-get-shadow-info-for-stealth-game-thief-like/page__hl__shadow Great, perfect. Never thought of using raycasts but does make sense. Will have a play with it. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.