Parallax Utils

● ARCHIVED · READ-ONLY
Started by DrDhoom 45 posts Page 1 of 3 View original ↗
  1. Parallax Utils v1.2a
    DrDhoom
    Introduction

    Create multipurpose parallaxes to beautify your maps.

    Features
    - Unlimited parallaxes.
    - Can be used as fog or weather.
    - Each parallax can be disabled via switch.
    - Easier setup with presets.
    - Animated parallax with adjustable frame duration and max frame.
    - Fading effect.
    - v1.1 Parallax can be locked to Map, Event and Player.

    Screenshots
    Screenshot_127.png
    Screenshot_128.png
    Screenshot_130.png

    How to Use
    The plugin file name has to be "DhoomParallaxUtils.js". Just place the file to YourProjectFolder/js/plugins/ folder.
    All the parallax files goes to img/parallaxes/ folder.

    Demo
    https://www.dropbox.com/s/ghyjcueptcvi16z/Parallax Utils v1.2.zip?dl=0

    Script
    https://github.com/DrDhoom/RMMV-Plugins/blob/master/DhoomParallaxUtils.js

    Changelogs
    v1.2a - 29/04/2023
    - Fixed: Layer lock shift X position uses the Y position instead.
    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 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.

    Credit
    - DrDhoom

    Terms
    - Free to use for commercial and non-commercial projects.
    - Credit me, DrDhoom
  2. Wow @DrDhoom , it's an awesome plugin.
    I had looked for a plugin like this until now (ノ´ヮ´)ノ*:・゚✧
    The customization is just very flexible.
    Btw i found (a bug) or not?, if the map hasn't been set a default parallax to it (in editor),
    the plugin will asume name parameter = "" and cause Loading Error.

    upload_2019-1-3_14-54-5.png
  3. @Isabella Ava Thanks :kaojoy:
    The plugin doesn't check for file existence. You could use map ID instead of parallax name in the plugin parameter, or disable the parallax switch before setting up the parallax name.

    Edit:
    Now that I've think about it, I might add an exception if map parallax name is empty.
    Also I'll add Layer X and Y shift position in the plugin parameters for layer that's locked to the map.
  4. DrDhoom said:
    Also I'll add Layer X and Y shift position in the plugin parameters for layer that's locked to the map.

    Or bind Layer to a specified X / Y position on Map or an Events' Position.
    I just think it could be a nice effect to have parallax bound to an event and move along with it =D
  5. Hey that's a good idea!
    Expect it to be implemented in the next update :D
  6. Ooooh, I need to test this out at some point! Sounds promising so far.
    Yeah, I agree! Being able to bind pictures to the map and/or event locations etc would be amazing, especially if they are tied to switches...
    and if we'd be able to change opacity! It would allow for some amazing effects!
  7. Manually change the opacity? The plugin already has automatic fade in and fade out effect, or throbbing if you set the duration really low.
  8. Well, manually would allow for effects like partially transparent trees/buildings etc as you walk behind them ;3
    Which could be really nice.
  9. Why not I guess, more option is better right? :kaopride:
  10. Yeah, if you have time and are willing to work on it, why not :3 Would be lovely. Can't wait to test it out on one of my next projects~! :kaojoy:
  11. Updated to v1.1 :kaojoy:
    Changelog:
    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.

    Edit:
    Parallax layer automatically disabled if it use map parallax name and map parallax name is empty. Forgot to add this in the changelog.
  12. Awesome, but it seems you forgot to define a default value for eventId (is it?) (⌒▽⌒)ゞ
    upload_2019-1-4_21-46-50.png
  13. Yes, I've updated the plugin already though.
    Please redo every parameters, that error is because Layer Lock parameter is empty.
  14. This is such a nice plug-in @DrDhoom. I love it so much :)
    I have a question about the animated doodads speed per second.
    I've tested the animated doodads from 9 frames and the animation is blinking.
    The blinking is started from more than 6 frames in my PC (Macbook pro/ i7, 16GB ram) based on the map size as your demo.
    Could you teach or address me how to control the animated doodads framerates per second (meaning animation speed) for making animation speed be controllable and issued as the blinking with bigger frame numbers of the animated one?
    Thank you and Happy new year :)
  15. The animation is blinking because it has to load first before it can be shown. If you pre-load the graphics before going to the map, it won't blink.
    Animation Frame Wait is a wait duration between each frame.
    frame wait.png
  16. DrDhoom said:
    The animation is blinking because it has to load first before it can be shown. If you pre-load the graphics before going to the map, it won't blink.
    Animation Frame Wait is a wait duration between each frame.
    View attachment 106296

    Thank you for the reply @DrDhoom
    I got How to do the setting of the Animation frame wait. That is working perfectly well.
    Regarding the blinking issue, I think I just used a too big size of the images in which 9 images with 1440x1440px resolution for the animated doodads.
    I assume total image size is overflowed the memory budgets.
    Once I used 6 frames of animated doodads with 1440x1440px images, the animation is not blinking at all but the blinking is starting from once I've set it up 7 frames.
    I just did another testing with a bit smaller image size that 960x960px images for 9 frames of the animated doodads and that's working well.
    Again. Thanks a lot and I'm so happy to use your awesome plugin and it is so useful :).
    Very appreciated it.
  17. @deadyfinger Ah I see... Did you enable Loop preset parameter? The layer object type is depending on whether the loop setting is on or off. If it's off then the normal Sprite will be used, otherwise it will use TilingSprite, which is more demanding I believe.
  18. DrDhoom said:
    @deadyfinger Ah I see... Did you enable Loop preset parameter? The layer object type is depending on whether the loop setting is on or off. If it's off then the normal Sprite will be used, otherwise it will use TilingSprite, which is more demanding I believe.

    No, I've never been the loop preset parameter setting even I have no idea where I could set the loop preset parameter in the RMMV.
    Could you address me how to do it?
  19. deadyfinger said:
    No, I've never been the loop preset parameter setting even I have no idea where I could set the loop preset parameter in the RMMV.
    Could you address me how to do it?
    Plugin parameters > Parallax Presets > Preset > Layer Loop
    Screenshot_132.png
  20. DrDhoom said:
    Plugin parameters > Parallax Presets > Preset > Layer Loop
    View attachment 106303
    Now that is OFF as the default and once I tested it with ON and nothing displayed on the map BTW.
    FYI: Your screenshot is pointing the animated light and I've tested with the animated doodads instead.