Lighters

Since my game is a horror game, I wanted to make it dark around every corner and have a very dim light to light the player's way. And so I went into photoshop, made a new file, deleted the background layer, filled another layer with black, then erased the spot I wanted to be lit. And the picture below was the result. 

I then proceeded to use this tutorial ---> http://www.youtube.com/watch?v=WeFlMpdkR4w

I did everything he did, but my image only appears in the top left corner of the screen while playing Leaving this big ugly picture that's supposed to follow the character and show the map through the transparency.

Is this another file-naming error or did I do something wrong?

Lighter.png
You need the light to be transparent as far as I see so it can reveal sight on the spot. Your picture looks like it doesn´t have transparency. Could this be the reason?

Also you just need to adjust the picture. If it says top left corner move it. My normal adjusting is upper left and x,y coordinates on 0.

Next thing is your image works best when it has exactly this width (544 px) and this height (416 px) cuz then it fills the whole screen.

Please tell me if this helped you.
well, the image should be as large as your game screen if you want the darkness to cover the screen...
What about if you're near the edge of the map so it has the character off-center on the screen?
You need the light to be transparent as far as I see so it can reveal sight on the spot. Your picture looks like it doesn´t have transparency. Could this be the reason?

Also you just need to adjust the picture. If it says top left corner move it. My normal adjusting is upper left and x,y coordinates on 0.

Next thing is your image works best when it has exactly this width (544 px) and this height (416 px) cuz then it fills the whole screen.

Please tell me if this helped you.
It sort of helped. But now I need to know how to keep it on the character that way the light follows the character in-case they go off center.
Well, you can move the pic with the player using parallel process events but if the image size is the same as the screen then as you go off the center, parts of the pic will be displaced... so you might need another pic that is completely black
I didn't realize you could have more than one image displayed at once.
Well, you can move the pic with the player using parallel process events but if the image size is the same as the screen then as you go off the center, parts of the pic will be displaced... so you might need another pic that is completely black

What if I double the size of the image according to screen size?
that can do I think, as long as the transparency is at the center and you move it to center to the player using parallel events... try it out and see what happens
that can do I think, as long as the transparency is at the center and you move it to center to the player using parallel events... try it out and see what happens
No it does not work. 

Should I show you the event page I'm using?
what do you mean by it doesn't work?
what do you mean by it doesn't work?
It olny stays in one position, and I am using parallel process for the triggers.
I've moved this thread to VX Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.


Show us the parallel process event - take a screenshot of the WHOLE event window so we can see how you're using it.
"Show us the parallel process event - take a screenshot of the WHOLE event window so we can see how you're using it. "

Event Page.jpg
How did you expect it to move when all the commands are the same? They are all upper left, 0,0... so how would it ever move??? I told you to center it to the player's location... not fix it to upper left 0,0

capture the player's X,Y at the top of that event then play around the values to arrive at the picture centered at the player
You need to make it look like this:

Control Variables [0001: Player X] = Player's X CoordinateControl Variables [0002: Player Y] = Player's Y CoordinateShow Picture: 1, 'Lighter', Centre (Variable 0001, Variable 0002)Wait 1 FrameThat's all you need. Controlling it using the button presses will not keep it in sync with the player anyway. If the player stops moving because they bump into something, the light will continue to move. And when the player is in the middle of the map and you press a direction key, it's the map that moves, not the player, so then you DON'T want the light to move.If your variables 1 and 2 are already used for something else, create and use new variables instead, rather than making it exactly the way I did there.
You need to make it look like this:

Control Variables [0001: Player X] = Player's X CoordinateControl Variables [0002: Player Y] = Player's Y CoordinateShow Picture: 1, 'Lighter', Centre (Variable 0001, Variable 0002)Wait 1 FrameThat's all you need. Controlling it using the button presses will not keep it in sync with the player anyway. If the player stops moving because they bump into something, the light will continue to move. And when the player is in the middle of the map and you press a direction key, it's the map that moves, not the player, so then you DON'T want the light to move.If your variables 1 and 2 are already used for something else, create and use new variables instead, rather than making it exactly the way I did there.
While that makes sense, it now tells me I have a syntax error.

Script 'Game_Interpreter' line 543: SyntaxError occured.

unterminated string meets end of file
Line 543:     value = eval(@params[4])

I'm not a programmer so I have no clue what this means. 
Show us your event again, now that you've made the changes. You ARE using event commands, aren't you, and not trying to type all of that into a Call Script box?


Player's X Coordinate comes from Game Data > Character > Player's Map X, not from the script box.
I am using the event pages. But I felt like something was a little off with the way I set up the variables. 

Event Page 2.jpg

Variables.jpg
As Shaz said, use the event commands for those, not the script input... I believe Player's X/Y is in Game Data

Original thread: https://forums.rpgmakerweb.com/threads/lighters.18580/