Flashlight not working in horror game?

Status
Not open for further replies.

hypershadic11

Veteran
Veteran
Joined
Nov 25, 2017
Messages
53
Reaction score
27
First Language
English
Primarily Uses
RMVXA
So, I've set up a flashlight in my horror game called The Glitch, and it's working pretty well... Except for just one problem that I'm having which is getting pretty annoying...
I've set up conditional branches to run else if statements and determine the players x, y, and direction... The direction is working out just fine, and it's always switching to where I move, but the problem I'm having is the player's x and y variables... It's like the game isn't reading the controlled variables I put, as the flashlight isn't binding to the players x and y. Maybe I did something wrong? I'm leaving a screen shot with both the finished product in the game and the code I put in, maybe I'm just being an idiot. /:
Either way I'd appreciate the help, because this is quite annoying...

Glitch System.png

As you can see, the light is in the top left corner, even though it should be attached to my character... (Obviously, I'm going to change the flashlight sprites, as I realize they don't look very good. Also the tint in general, not a very good tint.) Now for the code:

Glitch Code.png

I thought I did a pretty good job setting up the code, but I guess I was wrong. Could someone tell me what I did that could've messed it up?
 
Last edited:
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,048
Messages
1,018,543
Members
137,834
Latest member
EverNoir
Top