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.

Quick help question with an item/event!

First off i'm using rmvx, but I'm sure this process is the exact same as rmxp. I have created an item "Night Vision Goggles" and I'm trying to be able to use them only from the menu. I need them to tint the screen to a green color -17, 255, 0, 0 when they are "on" and when they are "off" i obviously need no screen effects. Certain areas in my game are darkened with a tint of -204, -204, -204, 0. I figured i needed to make this a common event ,but i just can't seem to figure it out. I need the screen to tint no matter what map i'm playing when they are on. The trouble i guess lies with some maps already having an initial tint to them! Any advice would be much appreciated!
 
Try just using a parallel process event that checks for equipped 'Night Vision Goggles' and then tints the screen, and if they're not equipped, tints it back.
Would that work?
 
I don't think he wants them equipped.
Make them activate a common event, and set the options so it's not usable in combat.
Basically have a switch nightvisiongoggles on/off

You'll have to do a parallel process though since maps have different tint. Basically while on tint the screen -17, 255, 0, 0 and while off tint the screen -204, -204, -204, 0
 
I think the problem is some maps have different tints than others...

I'm not sure, but I think Brewmeister (or someone) made a script that lets you memorize screen tints and restore them later. If you could find it, you can have a common event. In the CE, check if the switch is off. If it's off, turn it on, memorize the screen tint, and change the tint to -17, 255, 0, 0. If it's on, turn it off and restore the screen tint.

Only problem is.. it might not work if you go to a new map while it's equipped that has a different screen tint... hm...
 
yea i've got it to work except the fact that just about all my maps are tinted slightly different so I believe i'm going to only make them usable in areas where they are needed, thanx guys!
 

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