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.

Problem Solving 2D Tile based Ray Based Lighting

Hello guys!

So I'm working on a 2D Roguelike game in RPG Maker XP, this is where I was then I started a post only 30 minutes ago.

0b70e0d99e1e02b8cd59e106b91735cb.png


I was requesting help for making Tile Based Lighting, with a ray factor to allow the light to pass through only open space and over objects but not through pillars or walls and even doors.
because obviously this would take away the element of surprise or fear in a dungeon of the unknown.

I was looking for Something more similar to this, and was unsure of how to go about it.
9af514e3fbe4c9e6606db76338140481.png


I was not 100% sure how to accomplish this, and was in dire need of help!

But laughingly directly after I was about to post this I was writing up an example of what I might need. and what do you know.. the sample was the solution xD! I am now happy to show you ray based, tile based lighting:

85a9dd465f9943aa8dcd0b28952081d8.gif


The system also has the ability to allow me to "peak" through doors so that you can see into the room on the other side and check for monsters while 100% un-seen :) (of course this will only work with key-whole or windowed wooden doors.)


This script may also have other applications, I still need to work on encountering other lights because I'm currently only drawing for the player, but once I do ill touch base again. If this is in the wrong section I'm sorry <3

Thanks for being awesome and checking this out It seems I fixed my own problem and did not want to just not post about it (made me feel pretty rad ;P)





=================

UPDATE

=================

Finished merged lighting, and made your torch flicker :)

Also starting on inventory
51ae26785ff5f32245e8664f5d0a981d.gif
 

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