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 Help

Hey guys, Ive decided to try my hand at a mystery game and Ive actually gotten pretty excited about it, Ive done several searches on here and google for instructions on how to make a flashlight effect where I can get a beam normal ray (kinda like Legend of Zelda, link to the past, but in front of him)

I saw angel's process for making one but it was VX, tried opening up XP and like 'translating' to work on XP...no go there. So if someone could point me to an XP flashlight or something that would be great. I know ive clicked like 20 different topics and found nothing, and with dial-up its a pain to load all that for nothing :lol:

Only thing I would need help with is maybe somehow have a "battery" bar, but I think I could wing that with a conditional/variable/time combo.
 
HAHA, I found out my problem, for some reason I was actually using "Call common event" but I got the light now, I just need to do some editting to get the light to come on in the center of him. Ours is the same but the way I have mine, you enter a store and the ligh comes in like but hes at the bottom right side of the light.

Okay, only thing I would need now is the button to use it if you dont mind. I figure that would add a bit to the "spook" if they have to turn on the light and suddenly something is in front of them walking to them. I think that would involve 2 pictures then wouldnt it. A pure black one and then the one with the light?

If its to complicated I may just leave it to turn on automatically.

Now that ive had a chance to mess with it, im gonna have to make this picture a LOT bigger so when I get to the edge I actually see the background XD (the picture ends and moves up or to the side with me)
 
Well, I have the system mostly done, though it involves more than one common event and such, so I'll just upload a demo once I get there because that will make explaining it much easier. I'm making it so that there is a couple of things that you wanted in with this as well. This is my progress bar just because I don't feel like typing it out another way and because I think that they're cool...  :tongue:

Flashlight - Done
Used as an Item - Done
Activate upon Button Press - Done
Battery Life - In Progress

I remember reading earlier that you said you wanted battery life but it wasn't necessary or something to that effect. Either way, it'll be in it and whether you use it is up to you. I'v gotten the battery life down and all I have left to do is to make the charge portion of it. I think I know how I'm going to do it, but I just don't have anymore time tonight. It'll be set up to run only after you have taken a set number of steps with the flashlight off and with an adjustable running time for however long you want it to stay light. If you want anything else with this system, just let me know and I'll add it! The challenge of it is what makes it fun!  :thumb:

Good Luck!
~xgamexfreakx
 
lol, im not usually one to keep asking for more and more, usually just get the basic and go with that, but yea I definatly dont mind making it more challenging if need be XD

But I really think you got all I was hoping for :D

Only thing I would really think of needing is when the battery gets low a message pops up warning of the batteries life, but I think that would be a simple conditional/Variable
 
OK! I have finished your flashlight. I made a lot of changes to everything, so rather than explain everything here, I made comments in all of the common events that I used. Just make sure to read everything there including what both people say in-game. I enjoyed making it, so let me know if you have any problems with it!  :thumb: All techsupport is free as well  :tongue: so if you can't figure something out, let me know!

http://www.mediafire.com/?ejh3hd34w3z

Enjoy!
Good Luck!
~xgamexfreakx
 
This is pretty easy, just create the light effect accordingly to the direction, you need one for up,down,left,right.

For direction just use a condition branch to gather the direction of your player, also make a tint screen when the flashlight is in effect that way you don't see anything accept the player and the flashlight.

Now this is basically just a picture system so it's really just based on event coding and X/Y.
 
MysticTrunks":2ub3bok2 said:
This is pretty easy, just create the light effect accordingly to the direction, you need one for up,down,left,right.

For direction just use a condition branch to gather the direction of your player, also make a tint screen when the flashlight is in effect that way you don't see anything accept the player and the flashlight.

Now this is basically just a picture system so it's really just based on event coding and X/Y.
True, but you also need the picture to move with the player and cover the entire screen, even in the corner. Your pictures of light need to be at least 4 times the standard screen size. Plus, instead of using a tint screen, you should use a picture because it simplifies everything and makes the screen absolutly pitch black. If you test the demo that I made for Unknown Fox, you'll see what I mean. You don't want the player wandering in complete darkness, yet you don't want him to see past a certain point, so you would want to use a picture instead of just tint screen. Also, your way doesn't include a button press system, or a recharging battery for the flashlight. All of this is included in the demo that I made. Test it, you may find it better even though it is a lot more complicated.
 
ee;;; Wow! You know you can just make a 1 frame animation on the animation tab and then make an event(Parrallel process) that checks the Player's Map X and Y. After that you can do the "Show animation" action and put it on the Variable location place...

EDIT:

...When you turn on a flashlight, you can't see the beam....BTW
 

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