Multiple Lightings in Cave / Screen flickers

● ARCHIVED · READ-ONLY
Started by Kay007 4 posts View original ↗
  1. Hi everyone!

    I'm new to this forum and to RMVX in general. Some of the threads already helped me a lot.

    But now I have problem, for which I didn't find a solution yet.

    I have a cave, where there is a faint light around my character. It works with a common event

    where I use an image as an overlay to black out the sight of the player. It's in german but I guess you get the meaning of it. Will be switching to english version, as I will post here a lot more often in the future. :)

    common event.jpg

    The result of the script was satisfying for the moment.

    screen1.jpg

    Now the problem: I want a guard to appear and to have the same lightspot around him, so the player can see and evade him. But if I just copy the event with the variables centered around the Guard, the screen begins to flicker.

    I thought it's because I use the same image, but putting another image in the "Guard-Torch" event gave the same result. I guess RPVX cannot overlay two pictures at the same time?

    Is there a solution to the problem only using events, or will I finally be forced to use scripts?
  2. That is not a script. That is an event. You can't use the words interchangeably, as they mean very different things in RPG Maker (in fact there are a number of lighting scripts and I initially thought that's what you were talking about.


    The issue is PROBABLY because you've used the same picture number for both of them. Only one picture can be displayed at a time in a particular slot. So if you have two parallel process events that are either showing different pictures, or the same picture in different places, then there will be flashing.


    However, there is a serious flaw in your design. If your 'light' picture consists of a black background with just a transparent area in the middle, how will that look when two are displayed one over the other, with the transparent areas in different locations? All you'll get is black, because the top picture is blocking out the transparent area of the bottom picture, and all you can see through the transparent area in the top picture is the black part of the bottom picture.


    I suspect you will have to resort to scripts, but I really don't know if there is one out there that will allow you to have more than one torch with the surrounding area blacked out.
  3. One of the games in the Current contest has a lighting effect like you want so it is possible. but I'm not sure how they did it.
  4. Thank you both for your help and excuse me for mixing up the terms "Script" and "Event". I'll pay more attention to the terminology from now on!

    For now I made the transparent field in the middle big enough, so that the player can see other characters soon enough. If I stumble upon a script, that allows two torches at the same time, I'll update this post.