Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Sign in to follow this  
bluereaper75

Looking for a flashlight/darkness script...

Recommended Posts

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

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

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:

 

transparentpicture.png

 

And turn the "Flash Light" switch ON.

Share this post


Link to post
Share on other sites

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

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

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:

 

transparentpicture.png

 

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...