Flashlight/torch effect

Status
Not open for further replies.

ilohm001

Villager
Member
Joined
Sep 26, 2014
Messages
6
Reaction score
0
Primarily Uses
 Ok, so I'm making a mystery/horror game and I can't figure out how to make my main character....glow Like she has a flashlight or torch so she can see. I've tried a script tha didnt help with my "learn as you read stuff and use code and try it out" method. Is there a smipler way to keep the flash light on the character forver while she walkes around this weird world she is invading?
 

ilohm001

Villager
Member
Joined
Sep 26, 2014
Messages
6
Reaction score
0
Primarily Uses
You don't necessarily need  a script. You can use a picture and an event for this type of effect. :)
 Ok, how can you do that? I've tinkered with RPG MAkers before but I never got fully into it with events and such.
 

Lunarea

Artist
Global Mod
Joined
Mar 1, 2012
Messages
8,840
Reaction score
7,797
Okay, it's going to require the use of a picture graphic, such as this one:

And one parallel process event similar to this one that would be on every map that needs the flashlight effect:



Now what this event does is track the player's position via the variable X and Y, then using those coordinates to center the picture. Since the event is a parallel process, it will run continuously, updating the image placement as the player moves.

Since you mention that you haven't gotten fully into events, I strongly suggest reading a guide or two about switches and variables. They're two of the most important building blocks you'll use, and mastering them will make events much easier to understand and create. :)
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
Okay, it's going to require the use of a picture graphic, such as this one:

And one parallel process event similar to this one that would be on every map that needs the flashlight effect:



Now what this event does is track the player's position via the variable X and Y, then using those coordinates to center the picture. Since the event is a parallel process, it will run continuously, updating the image placement as the player moves.

Since you mention that you haven't gotten fully into events, I strongly suggest reading a guide or two about switches and variables. They're two of the most important building blocks you'll use, and mastering them will make events much easier to understand and create. :)
wow Never know this was possible to do this via event!

but for more ''easy'' use you can always also use Khas Awesome lighthning script? this is really easy to use! 
 

ilohm001

Villager
Member
Joined
Sep 26, 2014
Messages
6
Reaction score
0
Primarily Uses
Okay, it's going to require the use of a picture graphic, such as this one:

And one parallel process event similar to this one that would be on every map that needs the flashlight effect:



Now what this event does is track the player's position via the variable X and Y, then using those coordinates to center the picture. Since the event is a parallel process, it will run continuously, updating the image placement as the player moves.

Since you mention that you haven't gotten fully into events, I strongly suggest reading a guide or two about switches and variables. They're two of the most important building blocks you'll use, and mastering them will make events much easier to understand and create. :)

Ok, so I put the codein and I got this.



and I did this

 

ilohm001

Villager
Member
Joined
Sep 26, 2014
Messages
6
Reaction score
0
Primarily Uses
Ok, try switching from "Center" to "Upper Left".

And if that doesn't work, increase the Zoom (on the right side) to 200%. :)
Woo! Got it to center! But stll wont follow my character. .... T_T
 

Lunarea

Artist
Global Mod
Joined
Mar 1, 2012
Messages
8,840
Reaction score
7,797
Does the switch you have at the end stop the event from repeating? Because it does need to continuously run in order to follow the player. :)
 

ilohm001

Villager
Member
Joined
Sep 26, 2014
Messages
6
Reaction score
0
Primarily Uses
Does the switch you have at the end stop the event from repeating? Because it does need to continuously run in order to follow the player. :)
I removed the switches and tint, and noices it does follow the character, but not how I want it to.. The light stays in the middle of the room and barel moves. Maybe a smaller picture is needed? While placing a darker image below it?



looks like that. You can notice the picture ends on the sides.... and th light stays in the middle. It kinda moves, but not with the chracter.
 
Last edited by a moderator:

ilohm001

Villager
Member
Joined
Sep 26, 2014
Messages
6
Reaction score
0
Primarily Uses

Loz

Veteran
Veteran
Joined
Sep 5, 2019
Messages
42
Reaction score
13
First Language
Italian
Primarily Uses
RMMV
Tried this on MV, seems to work but not properly as the transition is very choppy
 

Redbank3k

Warper
Member
Joined
Jan 3, 2015
Messages
3
Reaction score
1
First Language
English
Primarily Uses
This is exactly what I was looking for. Thank you so much!
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top