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.

Latest Threads

Latest Posts

Latest Profile Posts

Who's a fan of firearms? The 5 on the bottom row (not including the green laser ones) I made pretty recently. I plan for most of these to be in my project.

Screenshot 2021-09-28 165924.png
Doing RPG Maker News for 28th September 2021

RMMV - Skip script errors:

For game developer testing purposes.
You know, I really get to farm likes since I post all of @Avery and @hiddenone 's blog tutorials on the forums...
Back from a very long hiatus with a new project woo
This is my battler placeholder image trying out art styles too I want to fake a backview battle system
I think I will want portraits and battle sprites to be 2D and stick to pixel art for overworld not 100%sure but pretty sure its easier to make pixel art for overworld sprites, events and maps and stuff.
Placeholder.png

Forum statistics

Threads
115,441
Messages
1,089,938
Members
150,223
Latest member
quickestsilver3
Top