Parallax Utils

Discussion in 'JS Plugin Releases (RMMV)' started by DrDhoom, Jan 1, 2019.

  1. DrDhoom

    DrDhoom Monkey Needs a Hug Veteran

    Messages:
    153
    Likes Received:
    152
    Location:
    South Borneo
    First Language:
    Indonesian
    Primarily Uses:
    N/A
    Parallax Utils v1.2
    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
    Don't change the filename! Just place the js file to YourProjectFolder/js/plugins/
    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
    - Changed: Allow lock position for looped layer.
    - Changed: Auto Scroll X and Y has decimal numbers for slower scroll speed.
    - Added: "change" plugin command.
    - Fixed: Blinking issue with animated layer that is caused by the bitmap not yet loaded.
    - 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
     
    Last edited: Apr 9, 2019
    #1
    Eliaquim, Lady, ct_bolt and 6 others like this.
  2. Isabella Ava

    Isabella Ava Veteran Veteran

    Messages:
    635
    Likes Received:
    756
    First Language:
    English
    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
     
    #2
  3. DrDhoom

    DrDhoom Monkey Needs a Hug Veteran

    Messages:
    153
    Likes Received:
    152
    Location:
    South Borneo
    First Language:
    Indonesian
    Primarily Uses:
    N/A
    @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.
     
    Last edited: Jan 3, 2019
    #3
    Isabella Ava likes this.
  4. Isabella Ava

    Isabella Ava Veteran Veteran

    Messages:
    635
    Likes Received:
    756
    First Language:
    English
    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
     
    #4
    DrDhoom likes this.
  5. DrDhoom

    DrDhoom Monkey Needs a Hug Veteran

    Messages:
    153
    Likes Received:
    152
    Location:
    South Borneo
    First Language:
    Indonesian
    Primarily Uses:
    N/A
    Hey that's a good idea!
    Expect it to be implemented in the next update :D
     
    #5
    Isabella Ava likes this.
  6. Plueschkatze

    Plueschkatze Veteran Veteran

    Messages:
    513
    Likes Received:
    1,520
    First Language:
    German
    Primarily Uses:
    N/A
    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!
     
    #6
    DrDhoom likes this.
  7. DrDhoom

    DrDhoom Monkey Needs a Hug Veteran

    Messages:
    153
    Likes Received:
    152
    Location:
    South Borneo
    First Language:
    Indonesian
    Primarily Uses:
    N/A
    Manually change the opacity? The plugin already has automatic fade in and fade out effect, or throbbing if you set the duration really low.
     
    #7
    Plueschkatze likes this.
  8. Plueschkatze

    Plueschkatze Veteran Veteran

    Messages:
    513
    Likes Received:
    1,520
    First Language:
    German
    Primarily Uses:
    N/A
    Well, manually would allow for effects like partially transparent trees/buildings etc as you walk behind them ;3
    Which could be really nice.
     
    #8
  9. DrDhoom

    DrDhoom Monkey Needs a Hug Veteran

    Messages:
    153
    Likes Received:
    152
    Location:
    South Borneo
    First Language:
    Indonesian
    Primarily Uses:
    N/A
    Why not I guess, more option is better right? :kaopride:
     
    #9
  10. Plueschkatze

    Plueschkatze Veteran Veteran

    Messages:
    513
    Likes Received:
    1,520
    First Language:
    German
    Primarily Uses:
    N/A
    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:
     
    #10
  11. DrDhoom

    DrDhoom Monkey Needs a Hug Veteran

    Messages:
    153
    Likes Received:
    152
    Location:
    South Borneo
    First Language:
    Indonesian
    Primarily Uses:
    N/A
    Updated to v1.1 :kaojoy:
    Changelog:
    - 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.
     
    #11
    Isabella Ava and Plueschkatze like this.
  12. Isabella Ava

    Isabella Ava Veteran Veteran

    Messages:
    635
    Likes Received:
    756
    First Language:
    English
    Awesome, but it seems you forgot to define a default value for eventId (is it?) (⌒▽⌒)ゞ
    upload_2019-1-4_21-46-50.png
     
    #12
    cuongeke1 likes this.
  13. DrDhoom

    DrDhoom Monkey Needs a Hug Veteran

    Messages:
    153
    Likes Received:
    152
    Location:
    South Borneo
    First Language:
    Indonesian
    Primarily Uses:
    N/A
    Yes, I've updated the plugin already though.
    Please redo every parameters, that error is because Layer Lock parameter is empty.
     
    #13
  14. deadyfinger

    deadyfinger Villager Member

    Messages:
    9
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    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 :)
     
    Last edited: Jan 5, 2019
    #14
  15. DrDhoom

    DrDhoom Monkey Needs a Hug Veteran

    Messages:
    153
    Likes Received:
    152
    Location:
    South Borneo
    First Language:
    Indonesian
    Primarily Uses:
    N/A
    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
     
    #15
    deadyfinger likes this.
  16. deadyfinger

    deadyfinger Villager Member

    Messages:
    9
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    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.
     
    #16
  17. DrDhoom

    DrDhoom Monkey Needs a Hug Veteran

    Messages:
    153
    Likes Received:
    152
    Location:
    South Borneo
    First Language:
    Indonesian
    Primarily Uses:
    N/A
    @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.
     
    #17
    deadyfinger likes this.
  18. deadyfinger

    deadyfinger Villager Member

    Messages:
    9
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    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?
     
    #18
  19. DrDhoom

    DrDhoom Monkey Needs a Hug Veteran

    Messages:
    153
    Likes Received:
    152
    Location:
    South Borneo
    First Language:
    Indonesian
    Primarily Uses:
    N/A
    Plugin parameters > Parallax Presets > Preset > Layer Loop
    Screenshot_132.png
     
    #19
    deadyfinger likes this.
  20. deadyfinger

    deadyfinger Villager Member

    Messages:
    9
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    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.
     
    #20

Share This Page