Parallax Utils

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,418
Reaction score
671
First Language
Portuguese - Br
Primarily Uses
RMMV
I have used other RPG makers before but since the script thingie changed in MV I'm trying to figure out.
The information thatis in the plugin manager is this:
and I don't understand where or how to do to have the images locked.
''
Changelogs

=============================================================================

v1.2 - 09/04/2019

- Changed: Allow lock position for looped layer.

- Changed: Auto Scroll X and Y has decimal numbers for slower scroll

speed.

- Added: "change" plugin command.

v1.1a - 06/01/2019

- Fixed: Blinking issue with animated layer that is caused by the bitmap

that is not yet loaded.



v1.1 - 04/01/2019

- Removed: Lock X to Map parameter.

- Removed: Lock Y to Map parameter.

- Changed: Layer Order parameter.

- Added: Global Switch parameter.

- Added: Layer Z parameter.

- Added: Lock Position parameter.

- Added: Layer Loop parameter.

- Added: setEvent plugin command.

- Added: setOpacity plugin command.

- Added: setEvent plugin command.



v1.0 - 01/01/2019

- Initial release.



=============================================================================

• Map Notetag

=============================================================================

<parallax: PRESETNAME, NAME[, MAXFRAME]>

- Add a new layer to the map.

- PRESETNAME: Preset Name in the Parallax Presets parameter.

- NAME: Base name that will be used for parallax filename, replacing %3.

- MAXFRAME: Only if the parallax is animated. Maximum frame.

Example:

The preset filename is %1_%3, and the notetag is <parallax: Preset,

testing>, and the map ID is 5, the actual filename will be 5_testing.



=============================================================================

• Plugin Commands

=============================================================================

parallaxUtils setEvent PRESETNAME EVENTID

- Set event ID to layer that has the PRESETNAME.

Ex. parallaxUtils setEvent Particle Event 5



parallaxUtils setOpacity PRESETNAME VALUE

- Set layer opacity.

- VALUE: 0 to 255.

Ex. parallaxUtils setOpacity Doodads 128



parallaxUtils setPosition PRESETNAME X Y

- Set layer shift X and shift Y.



parallaxUtils change MAPID [PRESETNAME:oRIGINALNAME] [NEWNAME] MAXFRAME

- Change parallax name to a new name.

- MAPID: Map ID can be set to 0 for current map id.

- PRESETNAME: Preset name in the plugin parameter. Case sensitive.

- ORIGINALNAME: The parallax name in the map notetag.

- NEWNAME: Parallax new base name.

- MAXFRAME: Only necessary for animated parallax.

Ex. parallaxUtils change ParallaxUtils change 3 [Doodads:decor] [decor2]

parallaxUtils change ParallaxUtils change 0 [Animated Light:light] [overlay] 4''
Map note tags
Plugin commands, I already see two ways of doing it.
You will have to try, otherwise, you will never learn.
 

Maferu

Villager
Member
Joined
Mar 19, 2020
Messages
8
Reaction score
0
First Language
spanish
Primarily Uses
RMMV
Map note tags
Plugin commands, I already see two ways of doing it.
You will have to try, otherwise, you will never learn.
Okay thank you for nothing. I was just asking for help, If someone could explain it to me so I CAN learn something I can't understand. Is that so much to ask? Not very friendly of your part.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,402
Reaction score
499
First Language
English
Primarily Uses
RMVXA
Okay thank you for nothing.
Now who is not being friendly!

Eliaquim was being direct in stating that what your asking to do is stated right in the script (and actually in the text that you provided).
Your frustration seems to be that you do not understand how to read. Not saying anything against you, but it was written in the text.
Now if you do not know how to apply the plugin commands in the way you want then just say so. "I don't know how those would work for me".

A fixed image on a map would use the map note-tag for instance,
• Map Notetag
<parallax: PRESETNAME, NAME[, MAXFRAME]>

and it is all explained with an example in the plugin text you posted.
- Add a new layer to the map.
- PRESETNAME: Preset Name in the Parallax Presets parameter.
- NAME: Base name that will be used for parallax filename, replacing %3.
- MAXFRAME: Only if the parallax is animated. Maximum frame.
Example:
The preset filename is %1_%3, and the notetag is <parallax: Preset,
testing>, and the map ID is 5, the actual filename will be 5_testing.

So, if you do not know about parallax, then say so.
Otherwise, please be more polite to those that are helping.
 

Restart

Veteran
Veteran
Joined
Mar 15, 2019
Messages
523
Reaction score
410
First Language
English
Primarily Uses
RMMV
Hello,

I think there's something wrong with how numbers are getting parsed when parallaxes get attached to events. Here's an example with the demo project:

Default Settings and Light Position:


Light is attached to target event

What happens if I increase Y?


It moves diagonally?


What happens if I make X positive?


No change.

EDIT: found the bug, you have
Code:
Game_ParallaxLayer.prototype.initialize = function (presetName, baseName, maxFrame, originalName) {
    this._presetName = presetName;
    this._presetIndex = Dhoom.ParallaxUtils.getPresetIndex(presetName);
    this._originalName = originalName;
    this.setBaseName(baseName);
    this._sx = 0;
    this._sy = 0;
    this._frame = 0;
    this._frameDuration = 0;
    this._maxFrame = maxFrame || 1;
    this._opacity = 255;
    this._fadeOpacity = this.minFade();
    this._fadeDir = 1;
    this._eventId = this.preset().lock.eventId;
    this.setPosition(this.preset().lock.shiftY, this.preset().lock.shiftY);
};
but it should be
Code:
Game_ParallaxLayer.prototype.initialize = function (presetName, baseName, maxFrame, originalName) {
    this._presetName = presetName;
    this._presetIndex = Dhoom.ParallaxUtils.getPresetIndex(presetName);
    this._originalName = originalName;
    this.setBaseName(baseName);
    this._sx = 0;
    this._sy = 0;
    this._frame = 0;
    this._frameDuration = 0;
    this._maxFrame = maxFrame || 1;
    this._opacity = 255;
    this._fadeOpacity = this.minFade();
    this._fadeDir = 1;
    this._eventId = this.preset().lock.eventId;
    this.setPosition(this.preset().lock.shiftX, this.preset().lock.shiftY);
};
 
Last edited:

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

Latest Threads

Latest Posts

Latest Profile Posts

Yanfly told me the new earth all animations in MZ look a bit like summoning potatoes and now I can't unsee it. halp
Despite time and all the other things I am working on, I decided that I am going to start a Fire Emblem-like project. Follow your dreams! I'll just have to balance hours efficiently. I'm also not making this as complex as my Might and Magic inspired project, so it will be a much easier project to work on.
So I've taken to doing a test of the game, and making a list of everything I think of during the test to add/fix. Over the course of the night I check them off as I do them, and by the end of the night I always feel like I've accomplished something. :LZSexcite:
Eventz MZ? Events MZ!

Forum statistics

Threads
100,586
Messages
977,521
Members
132,181
Latest member
Reich
Top