Lighters

Status
Not open for further replies.

Voracious

Villager
Member
Joined
Aug 7, 2013
Messages
29
Reaction score
1
First Language
English
Primarily Uses
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
 

Sir X

The Captain
Veteran
Joined
May 23, 2013
Messages
43
Reaction score
10
First Language
German
Primarily Uses
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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
well, the image should be as large as your game screen if you want the darkness to cover the screen...
 
Last edited by a moderator:

Cadh20000

Veteran
Veteran
Joined
Sep 15, 2013
Messages
1,828
Reaction score
445
First Language
English
Primarily Uses
What about if you're near the edge of the map so it has the character off-center on the screen?
 

Voracious

Villager
Member
Joined
Aug 7, 2013
Messages
29
Reaction score
1
First Language
English
Primarily Uses
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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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
 
Last edited by a moderator:

Cadh20000

Veteran
Veteran
Joined
Sep 15, 2013
Messages
1,828
Reaction score
445
First Language
English
Primarily Uses
I didn't realize you could have more than one image displayed at once.
 

Voracious

Villager
Member
Joined
Aug 7, 2013
Messages
29
Reaction score
1
First Language
English
Primarily Uses
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?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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
 

Voracious

Villager
Member
Joined
Aug 7, 2013
Messages
29
Reaction score
1
First Language
English
Primarily Uses
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?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
what do you mean by it doesn't work?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 
Last edited by a moderator:

Voracious

Villager
Member
Joined
Aug 7, 2013
Messages
29
Reaction score
1
First Language
English
Primarily Uses
"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
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Voracious

Villager
Member
Joined
Aug 7, 2013
Messages
29
Reaction score
1
First Language
English
Primarily Uses
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. 
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 
Last edited by a moderator:

Voracious

Villager
Member
Joined
Aug 7, 2013
Messages
29
Reaction score
1
First Language
English
Primarily Uses
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
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
As Shaz said, use the event commands for those, not the script input... I believe Player's X/Y is in Game Data
 
Last edited by a moderator:
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top