Author Topic: lamp effect  (Read 1118 times)

bangmedz

  • Newbie
  • *
  • Posts: 1
    • View Profile
lamp effect
« on: October 02, 2015, 08:59:31 am »
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!

Diarandor

  • Hero Member
  • *****
  • Posts: 1053
  • Cats are cool! (ΦωΦ)
    • View Profile
Re: lamp effect
« Reply #1 on: October 02, 2015, 11:45:54 am »
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.”