Help - Search - Members - Calendar
Full Version: Spotlight Effect
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
revolverwinds
How would one go about creating a spotlight effect where all but a circle around a character goes black?
TheBen
Well, the easiest way would be to use GIMP or Photoshop to make a graphic where you have all black and a little transparent hole in the middle, like this one.
It Should be 640x480
You can use this one if you want to (Right Click -> Save As).

Then you simply use the Show Picture command at the start of a map where you want that spotlight effect. That's the simplest way of doing it, but be warned - it won't follow the player around the edges of the map. For that, you'll have to make the graphic a lot bigger and have the picture's coordinates set to the player's screen coordinates... it's not exactly newbie-friendly.

There are also plenty of lighting scripts for XP that would let you do that. I don't really know any of them personally, but they are out there...
C-Division
Have a parrallel process that is always calculating the hero's Scene X and Y. And make that parallel process always be showing the picture at those coordinates. With a 1 frame wait, it shouldn't lag.
revolverwinds
Thank you so much. This site is great!


QUOTE (TheBen @ Nov 19 2011, 09:14 PM) *
Well, the easiest way would be to use GIMP or Photoshop to make a graphic where you have all black and a little transparent hole in the middle, like this one.
It Should be 640x480
You can use this one if you want to (Right Click -> Save As).

Then you simply use the Show Picture command at the start of a map where you want that spotlight effect. That's the simplest way of doing it, but be warned - it won't follow the player around the edges of the map. For that, you'll have to make the graphic a lot bigger and have the picture's coordinates set to the player's screen coordinates... it's not exactly newbie-friendly.

There are also plenty of lighting scripts for XP that would let you do that. I don't really know any of them personally, but they are out there...

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.