Author Topic: Lantern "light halo" effect  (Read 1448 times)

eri0o

Re: Lantern "light halo" effect
« Reply #20 on: 01 Aug 2020, 23:34 »
Hey, which approach did you ended up using? :)

Re: Lantern "light halo" effect
« Reply #21 on: 02 Aug 2020, 05:41 »
Hey, which approach did you ended up using? :)

Hey! I went with your suggestion of using a big black rectangle with a hole in the middle, and put it on a GUI instead of making it a character. But Thomas wants to make a flickering effect for the halo, so I'll probably end up implementing it as an animated object instead, if it doesn't impact performance too much. I also used the very useful TweenMaths.GetDistance property to ignore objects or hotspots outside of the lantern radius :)

Cassiebsg

  • Cavefish
  • Fleeing the Cylon tyrrany...
    • Cassiebsg worked on one or more games that won an AGS Award!
    •  
    • Cassiebsg worked on one or more games that was nominated for an AGS Award!
Re: Lantern "light halo" effect
« Reply #22 on: 02 Aug 2020, 17:57 »
You could maybe add the flickering effect animation as a non-clickable button above the hole?  ;)
There are those who believe that life here began out there...

eri0o

Re: Lantern "light halo" effect
« Reply #23 on: 02 Aug 2020, 18:56 »
I think this module still works, it extends GUIs so you can animate their backgrounds like other things, in case this is useful. I use in my game, I don't remember if I had to modify it's code.

https://www.adventuregamestudio.co.uk/forums/index.php?topic=29113.msg370611#msg370611

Re: Lantern "light halo" effect
« Reply #24 on: 03 Aug 2020, 09:26 »
Oh wow, that module looks really cool! Thanks!