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.

Lighting effects

Iam trying to make my entire map blacked out but to only have the area immeditaly around the main character, enemys and various lights visible.

I remember you could do something like this in previous versions of rpg maker, I cant seem to remember how its done... anyone?
 
every light can be event, and appear when the player is within range.
Now, to see only 'the area immediately around the main character', do this:
first, you'll need a picture of 640x480 with black bg, and white/transperant circle in center.
(if you're experienced in RMXP, just look at the screenshot below)
1. create the image mentioned above.
2.import to rmxp, and name it something like 'Darkness'.
3.make a new switch called 'dark screen'.
4. make a new common event. set it to parallel, then choose the switch 'dark screen' .
5.in the common event,
A. use 2 new variables: player x, and player y. add a 'control variables' command, and set them to player's x & y.
B. add a 'show picture' command, and choose the picture 'darkness'- in 'center', with variables player x, player y. and zoom 200% for x and y. now, just turn the switch ON, and you're done.
screenshot:
http://i103.photobucket.com/albums/m151/scythergirl1/Untitled-1copy.png[/IMG]
 
I made two demos for how to make the dark around the player, but I'm not sure for making it around events. There's two versions I've made, one allows you to see more if you have a lantern item (or whatever item you want), the other allows you to see the same amount you could with a lantern without a lantern.

You don't have to credit me. :thumb:
 

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