Parallax Utils

● ARCHIVED · READ-ONLY
Started by DrDhoom 45 posts Page 3 of 3 View original ↗
  1. Maferu said:
    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.
    ''
    TEXT HERE
    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.
  2. Eliaquim said:
    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.
  3. Maferu said:
    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.
  4. 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:
    2Tt6Lid.png
    UUV8unK.png
    Light is attached to target event

    What happens if I increase Y?
    SpADRYo.png
    la0ULnu.png
    It moves diagonally?


    What happens if I make X positive?
    la17Vyq.png
    gtvmr0z.png
    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);
    };
  5. I can't figure out how to make the fog appear in my own project with this plugin. When I use the Demo, the fog appears fine but if I try to insert it into my own project, the fog wont show up. I don't understand what I'm doing wrong. I copied all of the parallax images over.