lamp effect

Started by bangmedz, October 02, 2015, 08:59:31 AM

Previous topic - Next topic
Hey guys, I want to know how to make lamp effect, like we make an entities like shadow that just make the sprite and small space to reveal (if you dont understand, look at the image).

and how to spawn enemies when hero touched the sensor?

thanks!

There are other posts asking for that feature, and shaders, etc. It's not possible yet until Christopho adds functions to modify the pixels of surfaces and sprites; just wait for the new versions of Solarus. (Maybe if people make some donations to him he could get motivated and work faster on these features. Anyway, I think he is currently working on the remakes of the ROTH trilogy, so he has not much time yet to work for the engine).

For spawning enemies just check the Lua API. You can use the event on_activated of the sensor to create enemies, or something like that.
"If you make people think they're thinking, they'll love you. But if you really make them think, they'll hate you."