Multiple parallaxes?

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
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..
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
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.
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
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
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
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.
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
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
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
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?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
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.
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
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. :)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
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.
 
  • Like
Reactions: BCj

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
Ahh I see. Thanks that was very informative :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,569
Latest member
Shtelsky
Top