Gw Temp

Menu

Tutorial - 'Night Vision' by Dylan

An item about RPGMaker 2000 posted on

Blurb

This tutorial is to teach you extremely realistic nightvision that returns to the right screen tint and not always 100% on every color.

Body

This is a tutorial for RM2K3, but you could make it in RM2K by changing some things.

What you need to know:

1. Passwords
2. Variables
3. Screen Tints
4. Pictures

What you need:

Paint or Paintshop Pro, etc.
RM2K(3)

Overview:

This tutorial is to teach you extremely realistic nightvision that returns to the right screen tint and not always 100% on every color.

First Thing:

First things first. Open up a paint program and resize the picture to 320x240. Draw a couple of blu-ish-green horizontal lines, but make sure they are spaced out pretty well. Save it as a 256 Color BMP or PNG and open up RM2K3 (for this example).

Setting the Password & Displaying the Night Vision:

The purpose of that picture is to add some realism, like it was a camera or something. Now go to IMPORT and import the picture. Go to common events and make a Parallel Process named NightVisionSwitch. Note in this tutorial we will use 1 and 2 to toggle nightvision on/off.

Do a Password Event and Wait Until Pressed and Check the Number Keys Box:
Script © Dylan Oliver 2003


<>Key Input Proc: [xxxx: nightpassword]
<>Branch: Var [xxxx: nightpassword] is 11
--<>
: End
<>Branch: Var [xxxx: nightpassword] is 10
--<>
: End

Now, you must make it so it displays your picture and sets the screen tint:


<>Key Input Proc: [xxxx: nightpassword]
<>Branch: Var [xxxx: nightpassword] is 11
--<>Show Picture: 1, nightvision, (160, 120) NOTE:CHANGE NOTHING ON DISPLAY PROPERTIES
--<>Tint Screen: (R000,G120,B010,S100), 0.0 Sec NOTE: DO NOT WAIT IT
: End
<>Branch: Var [xxxx: nightpassword] is 10
--<>
: End

For this tutorial, there must be a variable: MapIdentityNVswitch, which is set at a parallel process on every map. So just for a demo, I will use a map called Candyland for a demo. I want it to be night. It is the first map in my game so I will make a parallel process on the map that has the following function:

<>Variable Oper: [xxxx: MapIdentityNVswitch] Set, 1

And the next map would be 2, next 3, next 4, etc. all the way until you finish the game. Now we would change this:

<>Key Input Proc: [xxxx: nightpassword]
<>Branch: Var [xxxx: nightpassword] is 11
--<>Show Picture: 1, nightvision, (160, 120) NOTE:CHANGE NOTHING ON DISPLAY PROPERTIES
--<>Tint Screen: (R000,G120,B010,S100), 0.0 Sec NOTE: DO NOT WAIT IT
: End
<>Branch: Var [xxxx: nightpassword] is 10
--<>Erase Picture: 1
--<>
: End

and change that to this this:

<>Key Input Proc: [xxxx: nightpassword]
<>Branch: Var [xxxx: nightpassword] is 11
--<>Show Picture: 1, nightvision, (160, 120) NOTE:CHANGE NOTHING ON DISPLAY PROPERTIES
--<>Tint Screen: (R000,G120,B010,S100), 0.0 Sec NOTE: DO NOT WAIT IT
: End
<>Branch: Var [xxxx: nightpassword] is 10
--<>Erase Picture: 1
--<>Branch: Var [xxxx: MapIdentifiyNVswitch] is 1
----<>Tint Screen: (R070,G070,B070,S070) 0.0 Sec
: End

And you must do that for every map you have. As an alternative, you could make a common event on call that does that, so it would be called instead of all those statements, which would probably be less hard but more of a hassle.

So, now we have it done with two variables, one picture, and a couple screen tints.

I hope you enjoyed my tutorial and expect more!