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,732
First Language
English
Primarily Uses
RMVXA
[move]RGSS3 Script Requests[/move]
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,370
Reaction score
8,093
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,137
Reaction score
7,329
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 Profile Posts

I almost thought it wouldn't happen, but a miracle has occurred, and IT'S HAPPENING!!!
xabileug wrote on thenerdmansion's profile.
TMCard - tomoaky
Hi i am currently working on a personal game using tomoaky TMCard in MV. i already have several modifications to it..

Screenshot-2021-04-18-at-19-32-48.png


Rest your weary legs in the Dancing Fox Inn!
Love to kick back and gamemak at the end of the day.
yay, i finally got around adding a profile pic! :guffaw:

Forum statistics

Threads
110,597
Messages
1,054,586
Members
143,731
Latest member
NateThe8
Top