Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Solved] Multiple lights in a cave

Lycosa

Member

Hi all,
I know this has been discussed before and I did find some other threads, but I didn`t find an answer to this question:
How do I create a pitch black screen with a light around the player (no problem so far) AND lights around some lamps, so that the player can see everything inside his own light radius and everything around the lamps, but nothing else?
 

Lycosa

Member

Thanks you two, but I already had a look at Angelman`s tutorials and I think his methods don`t work with a pitch black screen. And Calibre`s Tutorial does only work for lights that don`t move, but I have a light that moves (around the player).
So sorry, both don`t work for me...
 

Lycosa

Member

I did, but I didn`t manage to find a solution...
But I found something else: You can tint the screen very dark, so that you don`t really see anything, and the show an animation on the player. It´s not the perfect solution, but it works quite well.
 
Ok, I just tried this out, and it looks good.

Your 'spotlight' that follows the player is a solid black rectangle (2x size of screen) with a transparent center.
You have a parallel process that makes it follow the player.
Each place you have a stationary light, capture a screen image of that spot, and edit the image to fade out the edges, making an
opaque center & transparent edges.
Display these as pictures above the spotlight image.

This works nice on a 15x20 tile map. If your map is bigger, you'll need to add event commands to your parallel event to move the stationary pictures when the map moves as well.

TTFN
 

Lycosa

Member

Correct me when I´m wrong, but when you have an opaque picture, you can`t see through the picture and therefor can`t see the map. So you can`t see any moving events (e.g. enemies) in the light... And that would be what I need.
 

Lycosa

Member

How do you do that? I thought there only were two things you can set in the RPG Maker: One transparent and transculent colour...

Anyway, if you make it transparent or translucent, the picture below (the black edge) will shine through again.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top