Multiple parallaxes?

● ARCHIVED · READ-ONLY
Started by BCj 11 posts View original ↗
  1. So, I just made a moving train. In the interior I want the windows to show the moving landscape outside.


    The parallaxlayer is the interior of my train. How can I create a layer that's _under_ the parallax layer to show the movement through the windows?


    I tried it with V's fog/overlay script but well, the interior of my train suddenly overlapped my characters..
  2. You'll need an overlay script that doesn't use the true parallax layer. If I remember correctly, Yami's Overlay script works with several layers - that might be able to help you, but I don't have the link ready.
  3. I have his script but I remember not getting it to work properly as my yami parallax layer was still beneath the player instead of above which meant that I basically had no upper layer for walking under bridges and so on.. If you understand what I mean :p
  4. Yami's script requires configuration and you need to set the variables correctly in case of multiple pictures.


    It does have a lot of options that aren't in simple parallax lock scripts - but the price for those options is that the script will not work correctly if you made an error during configuration (usually forgetting to reserve the switches, resulting in the switches (and thereby the layers) being turned off unintentionally).


    If everything is set correctly and there are no incompatibilities with other scripts, then the ground layer picture should be below the player and the paralax layer picture above the player.


    But if there are misconfigurations or incompatibilities - that script is the one parallax script that caused more questions here on the forum than any other. More option do have more problems after all.


    If you want to try it again, and get the wrong results even after reading the instructions in it again, then post your configuration here and we will try to help.
  5. Well I managed to get it to work (apparently he wanted you to use par1-1, instead of parallax1-1) but now it conflicts with my message sysem, since suddenly, all my messageboxes (and texts) are half off of my screen because they were mvoed downwards so much.. So now I have another problem.


    Edit: I use YEA Message System


    http://yanflychannel.wordpress.com/rmvxa/core-scripts/ace-message-system/


    And Galv Message Background


    http://www.google.nl/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCEQFjAA&url=http%3A%2F%2Fgalvs-scripts.com%2Fgalvs-message-background%2F&ei=hkosVMiVGoPe7Abdk4CYCg&usg=AFQjCNGUdR320q2NYvePhftOrpsq5-0KiA&sig2=dDdTa-hprv7xxphA6TFbqA&bvm=bv.76477589,d.ZGU
  6. Sounds like you still haven't configured it properly. I'm guessing both scripts use a variable, and you haven't set them up, so they're using the SAME variable.
  7. Galv's uses switch 15 (and doesn't use variables) so it doesn't overlap. I can't find anything about switches or variables to edit in YEA Message System. Could you please check it for me?
  8. YEA Message system uses Variables for rows and width of the message boxes, they are defined around lines 170 following.


    And Yami's script uses multiple variables for controlling the layers - that's why I asked you three times in the other topic how you configured those variables and what their values are. I don't have the lines for the overlay script, but the definition is very similiar to the definition in the message system: Constants set to the variable number in the beginning of the textfile - after the basic instruction comments, but before the real coding starts.


    Please check those scripts to see which variables you have configured now - you already changed the configuration for the switch in Galv's script, and you have to do the same in both the message system AND the overlay script.
  9. I managed to get it to work now :)


    I thought that the row/width line was just defining what the row/width of the textmessages was, not that they were variables in itself.


    I've decided to change the variables of the overlay script as I noticed that a lot of my scripts were using the first few variables as well.


    Thanks. :)
  10. BCj said:
    I thought that the row/width line was just defining what the row/width of the textmessages was, not that they were variables in itself.
    Nope, they are variables where the values are read from, to allow you to change the text window during the game - for example, if you need six lines for a single text message, then you control the row-variable to six before the show text command, and back to 4 after it.
    And in case of the overlay, those are variables to allow you to change the overlays on a map - for example when you have three light overlays for morning, midday and evening you can name them with 1, 2 and 3 at the end and choose the game time by placing 1, 2 or 3 in the light-variable of the overlay - the script will then select the light overlay depending on the value inside the variable - and if you don't have that picture prepared, the script will not work.


    That's why it didn't work when some other event changed those values to something other than 1, and you had only the pictures for -1 in the project.


    It doesn't need to be time - you could also change the overlay layers depending on story progress or whatever, you just need the variables set to the values where you have the pictures you want.
  11. Ahh I see. Thanks that was very informative :)