bluereaper75 0 Report post Posted February 13, 2011 Hello, I am working on a horror themed RPG, and I was curious if there were any scripts for a flashlight effect? This project would feature scenarios in which you are submerged in darkness being hunted by monsters (like every horror game ever made). Im curious if there were some kind of effect were you see a cone of light coming off of your character, illuminating a small area while everything else is dark. I appreciate any info i can get. thank you. Share this post Link to post Share on other sites
Tsukasa 0 Report post Posted February 19, 2011 xD your looking for some same thing I am..but I wanted mine so you can go to your items....and click on the flash light and your character would be holding the flash light while a orb of light would surround the character in a light orb. Share this post Link to post Share on other sites
Kiriashi 117 Report post Posted February 19, 2011 Its pretty damn easy. Just make a flashlight item and link it to a common event. (Make sure the flashlight is set to non consumable) In the common event, make a conditional branch that checks to see if the "Can Use Flashlight" switch is ON. You will later use that switch on all maps you want the flashlight to be enabled on. The In the else branch, say something like "You can't use your flashlight here." Now, in that first conditional branch, make ANOTHER on that checks to see if the "Flash Light" switch is ON. in that branch, use the erase picture command and erase picture 1, and turn off the switch "Flash Light" Under the Else Condition, use the show picture command to show this picture: And turn the "Flash Light" switch ON. Share this post Link to post Share on other sites
Tsukasa 0 Report post Posted February 20, 2011 xD I almost had that yesterday and earlier when I was messing with marked's flash light event. D; I couldn't think of how to do it because I was so tried last night that I couldn't think ..xD but ty Share this post Link to post Share on other sites
Kiriashi 117 Report post Posted February 20, 2011 No problem. And you don't need to quote a post like that, especially when it was the one right before your's. xD Share this post Link to post Share on other sites
kingzobbi 0 Report post Posted September 23, 2011 Its pretty damn easy. Just make a flashlight item and link it to a common event. (Make sure the flashlight is set to non consumable) In the common event, make a conditional branch that checks to see if the "Can Use Flashlight" switch is ON. You will later use that switch on all maps you want the flashlight to be enabled on. The In the else branch, say something like "You can't use your flashlight here." Now, in that first conditional branch, make ANOTHER on that checks to see if the "Flash Light" switch is ON. in that branch, use the erase picture command and erase picture 1, and turn off the switch "Flash Light" Under the Else Condition, use the show picture command to show this picture: And turn the "Flash Light" switch ON. But.. so i did everything you said right? and then the picture of darkness just sticks in the middle. it doesnt follow the character so it makes it lame ;/ what do I do now? Share this post Link to post Share on other sites
Dragon324 16 Report post Posted September 23, 2011 It really depends on what your trying to do. I'm assuming you have it set to constants. Instead you should set it to variables. But I'm getting ahead of myself ok here is what I think you need to do. 1. Go to the screen where you can make a variable. Here if you go down to character you will see things like player then you will see map x, location and map y location. 2. Make 2 variables under the common event where 1 reads an x position and 1 reads a y position 3. Then I suppose with your switch that reads the light is on, either try putting on parallel processing or looping. I never tried this so idk if that would work it seems to me it might lag some but you can try it. I also know my explanations a little sloppy but I'm hoping you can figure it our if you cant and if I have time sometime I'll post step by step screenies and try to do it myself. Well hope this helps. Cheers :alright: Share this post Link to post Share on other sites
Marked 197 Report post Posted September 24, 2011 Like this? http://www.youtube.com/watch?v=aAEhRrsS7gU http://www.rmxpunlimited.net/forums/index.php?showtopic=4014 Share this post Link to post Share on other sites
Kiriashi 117 Report post Posted September 24, 2011 Here, I made a demo for you. http://www.mediafire.com/?oqmuq6k28af23zv Don't mind the map, I made it in like two minutes. The flashlight works really nicely though. :3 Share this post Link to post Share on other sites