#1, by sebastianSunday, 07. February 2016, 14:57 7 years ago
hey there computer peoplez,
i have a question regarding the "shaderlamp". The wiki doesnt give any examples and the forum has only stuff which doesnt work for me. So maybe some of you know how i solve this:
I want to make a spotlight on a scrollable scene (500x316) which has its source on 250,316 (so in the middle top point) and is going straight down to 250,0 (middle bottom). The spotlight should NOT move when the scene scrolls. The only thing i managed to work is a spotlight which rotates depending on scene scoll but i dont know how i did it.
Could you give me an example on how to achive a normal fixed spotlight?
thanks in advance
EDIT: Also what i want to know: is it possible to bind a shaderlamp to an object, so it could be behind objects?
should bind the light to the position. But actually ist seems that the binding not works... I think sth. is wrong with the shader toolkit. Have problems with the binding for my flashlight too... But i hope, the 1st code-snippet works for you...