renguro

Villager
Member
Joined
Jul 19, 2019
Messages
14
Reaction score
1
First Language
English
Primarily Uses
RMVXA
I was wondering if there was a way to make the halo of light around a player, sort of similar to how Pokemon games do it.
upload_2019-9-14_22-24-53.png
Like this, except a softer glow, and just a dim background instead of a completely dark one.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,305
Reaction score
11,726
First Language
English
Primarily Uses
RMVXA

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


You could try Galv's Visibility Range script. Last time I looked he provided a demo complete with a graphic. If the graphic is too dark, you could always reduce the opacity a bit in an image program (e.g. GIMP or paint.NET if you don't have Photoshop).
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,113
Reaction score
7,999
First Language
German
Primarily Uses
RMMV
it can easily be done without scripts if you accept some minor limits.

the trick is to create the darkness with a picture that covers the entire screen and is completely black, with only the center area being transparent - to whatever distance you want, and that includes partial darkness by changing the amount of transparent pixels between the black pixels.

the disadvantage here is that it requires the player to stay in the center of the window - he cannot be allowed to approach the borders of the map.
and that requires to make the maps at least 10 tiles larger in any direction, while blocking all places where the player might be able to get nearer than 9 tiles to the border.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,052
Reaction score
7,143
First Language
Indonesian
Primarily Uses
RMVXA
If the graphic is too dark, you could always reduce the opacity a bit in an image program (e.g. GIMP or paint.NET if you don't have Photoshop).
No need, there is an opacity controller inside the script. And it's actually a good thing because you can make it gradually darker by modifying the variable.
 

Latest Threads

Latest Posts

Latest Profile Posts

No internet for 2 weeks. Thank goodness for phones. :kaoluv:
Megumi_Aramaki wrote on Takeshi014's profile.
Here you go! Enjoy mapping!
Megumi_Aramaki wrote on Takeshi014's profile.
Valley can be done by outside mountain town tilesets I will send you right away!
Hi everyone! I've relased a demo about my new game in "Games in Development". Someone interested? :3
Going live at 2pm EST

Forum statistics

Threads
109,043
Messages
1,041,571
Members
141,530
Latest member
jno8034
Top