Flashlight/torch effect

● ARCHIVED · READ-ONLY
Started by ilohm001 14 posts View original ↗
  1.  Ok, so I'm making a mystery/horror game and I can't figure out how to make my main character....glow Like she has a flashlight or torch so she can see. I've tried a script tha didnt help with my "learn as you read stuff and use code and try it out" method. Is there a smipler way to keep the flash light on the character forver while she walkes around this weird world she is invading?
  2. You don't necessarily need  a script. You can use a picture and an event for this type of effect. :)
  3. Lunarea said:
    You don't necessarily need  a script. You can use a picture and an event for this type of effect. :)
     Ok, how can you do that? I've tinkered with RPG MAkers before but I never got fully into it with events and such.
  4. Okay, it's going to require the use of a picture graphic, such as this one:

    Spoiler
    Flashlight_zpsc66795d6.png
    And one parallel process event similar to this one that would be on every map that needs the flashlight effect:

    Flashlight-event_zpsc09919e1.png

    Now what this event does is track the player's position via the variable X and Y, then using those coordinates to center the picture. Since the event is a parallel process, it will run continuously, updating the image placement as the player moves.

    Since you mention that you haven't gotten fully into events, I strongly suggest reading a guide or two about switches and variables. They're two of the most important building blocks you'll use, and mastering them will make events much easier to understand and create. :)
  5. Lunarea said:
    Okay, it's going to require the use of a picture graphic, such as this one:

    Spoiler
    Flashlight_zpsc66795d6.png
    Spoiler
    And one parallel process event similar to this one that would be on every map that needs the flashlight effect:

    Flashlight-event_zpsc09919e1.png

    Now what this event does is track the player's position via the variable X and Y, then using those coordinates to center the picture. Since the event is a parallel process, it will run continuously, updating the image placement as the player moves.

    Since you mention that you haven't gotten fully into events, I strongly suggest reading a guide or two about switches and variables. They're two of the most important building blocks you'll use, and mastering them will make events much easier to understand and create. :)
    wow Never know this was possible to do this via event!

    but for more ''easy'' use you can always also use Khas Awesome lighthning script? this is really easy to use! 
  6. Lunarea said:
    Okay, it's going to require the use of a picture graphic, such as this one:

    Spoiler
    Spoiler
    And one parallel process event similar to this one that would be on every map that needs the flashlight effect:



    Now what this event does is track the player's position via the variable X and Y, then using those coordinates to center the picture. Since the event is a parallel process, it will run continuously, updating the image placement as the player moves.

    Since you mention that you haven't gotten fully into events, I strongly suggest reading a guide or two about switches and variables. They're two of the most important building blocks you'll use, and mastering them will make events much easier to understand and create. :)

    Ok, so I put the codein and I got this.



    and I did this

  7. Ok, try switching from "Center" to "Upper Left".

    And if that doesn't work, increase the Zoom (on the right side) to 200%. :)
  8. Lunarea said:
    Ok, try switching from "Center" to "Upper Left".

    And if that doesn't work, increase the Zoom (on the right side) to 200%. :)
    Woo! Got it to center! But stll wont follow my character. .... T_T
  9. Does the switch you have at the end stop the event from repeating? Because it does need to continuously run in order to follow the player. :)
  10. Lunarea said:
    Does the switch you have at the end stop the event from repeating? Because it does need to continuously run in order to follow the player. :)
    I removed the switches and tint, and noices it does follow the character, but not how I want it to.. The light stays in the middle of the room and barel moves. Maybe a smaller picture is needed? While placing a darker image below it?



    looks like that. You can notice the picture ends on the sides.... and th light stays in the middle. It kinda moves, but not with the chracter.
  11. Lunarea said:
    Ok! Sorry, I was doing this from memory - I really need to check things in engine first.

    I just tested it in a project and the event looks like this:



    That is centered on the player and follows them around.

    And here's a super quick demo if you need it:

    https://www.dropbox.com/s/vh56kxf2zx5vpr2/Flashlight%20Demo.exe?dl=0


    Oh thank you!!! It works now! Kinda slow, but im sure I can figure out the speed. I think lol
  12. Tried this on MV, seems to work but not properly as the transition is very choppy
  13. This is exactly what I was looking for. Thank you so much!