Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Flashlight Tutorial Help!!

I hope i'm in the right section to post this but I found Angelman's light tutorial. I am making a Silent Hill on RMXP and I am trying to make the effect shown here in this picture:

Flashlight.png
<- picture from the tutorial

I hope someone can help me, it's a big part of my game. Without it... it ain't Silent Hill.

Thank You for taking the time to read this. :)
I hope someone can help explain it to me.
 
I need help understanding angelman's flashlight tutorial. It's on this site, i did everything right but instead of the light being in front of my character its on top. I just need help on moving it in front of the character sprite.

Oh, and on the tutorial it says that if you edit it, which I have tried everything possible but it either stays up in the corner or is directly on the character. I hope I explained it right. :/
 

Spoo

Sponsor

Assuming you followed angelman's instructions to the letter (I.E. Copied his event screenshots), the problem will be there.

help1.png


The red box denotes an incorrect picture I.D. number for the move picture command. If the picture doesn't move with the player, this is probably your issue. Just set it to whatever number you gave the light in the flashlight switch common event.

Ignore the green; I thought something was wrong that wasn't.

See if that solves your issue; let me know if not.
 
it moves with the character but only on top of him. When i did this it stopped working. It's very difficult and kinda fustrating cuz its a great tutorial and easy to learn but yet i cant grasp it's basics and turn it into a flashlight.

I made them events on the map. Was i supposed to make them common events?
 
I tempured around with it and it gave me the light i wanted which was good but it wont follow my character now. It did before but now it wont. Maybe its the player screen x/y.

I followed exactly what you did in ur picture and it worked wonderfully. It made the light i needed. It just wont follow my character.

On the Player X/Y Screen I put:

>Control Variables: [0001: X] = Player's Screen X
>Control Variables: [0002: Y] = Player's Screen Y
>Change Screen Color Tone: (-17,-17,0,153), @20
>Change Map Settings: Fog = 'Fog01', 0, 100, sub, 200, 2, -2
>Show Picture: 1, 'light',Center (Variable[0001],[0002]),(250%,250%), 0, add
>Wait: 1 frame(s)

If I did something wrong please feel free to tell me.
 

Spoo

Sponsor

You need to take out the show picture command from the Player X/Y common event; with it as it is, it will allow the player to use the flashlight before they've obtained the flashlight :p

I don't think it's the Player X/Y event causing your trouble; you don't have any variable changes in there besides what's needed.

help4.png
help2.png
help3.png

I would check your move picture commands in the flashlight common event first.
 
hey everything is good except one thing. When I try and turn the flashlight on and off it stays off till you press the button once. Then it stays on even if i press the button, it flickers as tho it is shutting off but then goes right back on.
 
The problem lies in the Parallel Process event (right image in Spooky's post). Here's a more efficient setup:

@>Conditional Branch: [flashlight] in inventory
@>Conditional Branch: The A button is being pressed
@>Conditional Branch: Switch [0025: flashlight] == ON
@>Control Switches: [0025: flashlight] = OFF
@>etc. (play SE, Erase Picture)
: Else
@>Control Switches: [0025: flashlight] = ON
@> etc. (play SE, Show Picture)
: Branch End
: Branch End
: Branch End
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top