Fixing lighting when the screen is tinted

noot

Villager
Member
Joined
Mar 17, 2018
Messages
5
Reaction score
2
First Language
English
Primarily Uses
RMVXA
Heya. I've run into a small problem recently, and I was wondering if anyone knew a possible fix to this.

For some parts of my game, I'm using the method of using an event graphic to create a lighting effect. However, there are some lights that I only want to turn on at night, but when the screen is tinted dark to make it appear night, the light graphics are also tinted darker, and it ruins the illusion of light. Is there any way to tint the screen and have specific event graphics be independent of the tint?
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,425
Reaction score
4,482
First Language
English
Primarily Uses
RMMV
You'll most likely need a lighting script for that.

I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.

 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,725
Reaction score
923
First Language
Dutch
Primarily Uses
N/A
Or somehow change the viewport of the image? Like, make the Z higher than the tint?
 

noot

Villager
Member
Joined
Mar 17, 2018
Messages
5
Reaction score
2
First Language
English
Primarily Uses
RMVXA
Or somehow change the viewport of the image? Like, make the Z higher than the tint?
I think I know what you mean, but is that possible to do without a script? Or is it an event command I'm missing?
 
  • Like
Reactions: BCj

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,438
Reaction score
6,255
First Language
Indonesian
Primarily Uses
RMVXA
but is that possible to do without a script?
Impossible.

There will be one consequence though, mainly because of how the RGSS3 engine works. When you start excluding specific sprites so that it won't be tinted, it will be drawn above all tileset including star passable tiles. If you're okay with that, the script could be made.

I'm not saying I'd be the one who's going to make, just a possibility.
 

noot

Villager
Member
Joined
Mar 17, 2018
Messages
5
Reaction score
2
First Language
English
Primarily Uses
RMVXA
Impossible.

There will be one consequence though, mainly because of how the RGSS3 engine works. When you start excluding specific sprites so that it won't be tinted, it will be drawn above all tileset including star passable tiles. If you're okay with that, the script could be made.

I'm not saying I'd be the one who's going to make, just a possibility.
Ooh, I see. Thanks for letting me know that, I had no idea. And honestly, I'd be completely okay with that, and it thankfully wouldn't be a problem with the specific part of my game that I need the untinted sprites for.

I don't know how complicated of a script this would have to be, but I guess that's what I'm asking for now. If anyone could figure one out for me, I'd be really grateful, and I'd be sure to give credit and all.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,402
Reaction score
499
First Language
English
Primarily Uses
RMVXA
This script by Estroile seems to work. Haven't tested but it's reported working.
 

noot

Villager
Member
Joined
Mar 17, 2018
Messages
5
Reaction score
2
First Language
English
Primarily Uses
RMVXA
This script by Estroile seems to work. Haven't tested but it's reported working.
IT WORKED!!! I don't know how I didn't find that sooner since I've been looking for a script exactly like that but it's perfect!! : D Oh my gosh thank you sooooo much! It's just what I needed. I really appreciate the help!!
 
  • Like
Reactions: BCj

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

ESAMarathon on Twitch, now streaming "Eat Girl". Yep, that's the title of a game... Apparently it's a Pacman knockoff.... Which is of course the only logical conclusion one would get from a name like "Eat Girl". :kaopride: I can't believe anybody would think anything else! :kaoback:
Super stoked i just finished my first town in my project, by finished i mean i can always add more decorative aesthetics and the NPCs don't talk yet but the mapping is complete and all the important chess pieces are present!
My brain: Hey, I have an idea how to make the transition to the main story quest in The Wastes more natural!
Me: Good!
My brain: You need to remake the hotel you start out in, it's not realistic enough.
Me: Ok... This was unexpected, but I can do it.
My brain: Now make each hotel floor 5 times as large to match the main part. Oh, you also need to make a bunch of new npcs to fill in the space on these maps.
Me: Crap.
Should be able to release Haxe MV/MZ next weekend.
It look that somehow MZ tracks are messed up (for example battle4 is obviously a theme, castle2 is a ship, ship1 is a scene and so on..). Maybe they just named them after with some ambiguity.

Forum statistics

Threads
100,617
Messages
977,828
Members
132,227
Latest member
YourBaka
Top