djDarkX

Retro & Remastered Music Guru
Veteran
Joined
Jan 17, 2013
Messages
2,701
Reaction score
1,921
First Language
Music
Primarily Uses
RMMV
Hey everyone!

I was wondering if someone would be kind enough to make a small, quick plugin for a mosaic effect for a battle transition. Someone made one quite some time ago and it looks like it worked, but version never went past 0.1 and it won't work on the latest version of MV. The script was called Pixel_BattleTrans, or Pixelated Battle Transition. The plugin is hosted here on Github (link) and the video below shows how the transition worked. If someone could create a plugin that does exactly what this did, or update the original plugin, that'd be awesome! Thanks for taking the time to read this request!

 

TheCosmicSlug

Veteran
Veteran
Joined
Apr 7, 2017
Messages
55
Reaction score
24
First Language
English
Primarily Uses
RMMV
bumping because I would love to see this transition plugin working again, mog's plugin doesnt seem to have a pixel option.
 

TheCosmicSlug

Veteran
Veteran
Joined
Apr 7, 2017
Messages
55
Reaction score
24
First Language
English
Primarily Uses
RMMV
Okay i've been fiddling with this some more and its working now but i'm not sure how to make the pixel squares larger.
Heres the code anyway.

Code:
//=============================================================================
// Pixel_BattleTrans.js
// by Delacannon (Fixed for 1.6+ by TheCosmicSlug)
// Youtube Demo: https://youtu.be/w4sKi43mSHI 
//=============================================================================
/*:
 * @plugindesc Creates a pixelate battle transition.
 * @author Delacannon (Fixed for 1.6+ by TheCosmicSlug)
 */
var PixelateFilter = new PIXI.filters.PixelateFilter();

(function() {
   var parameters = PluginManager.parameters('Pixel_BattleTrans');
   var _Scene_Map_update = Scene_Map.prototype.update;
   var _Scene_Battle_update = Scene_Battle.prototype.update;
   var display_window = false;

   Scene_Map.prototype.updateEncounterEffect = function() {
      if (this._encounterEffectDuration > 0) {
        this._encounterEffectDuration--;
        var speed = this.encounterEffectSpeed();
        var n = speed - this._encounterEffectDuration;
        var p = n / speed;
        var q = ((p - 1) * 20 * p + 5) * p + 1;
        var zoomX = $gamePlayer.screenX();
        var zoomY = $gamePlayer.screenY() - 24;
        if (n === 2) {
            $gameScreen.setZoom(zoomX, zoomY, 1);
            this.snapForBattleBackground();
            this.PixelateFilter = new PIXI.filters.PixelateFilter();
            this.PixelateFilter.pixelSize = 1;
            this.children[0].filters = [this.PixelateFilter];
            this.startFlashForEncounter(speed / 2);
        }
        $gameScreen.setZoom(zoomX, zoomY, q);
        if (n === Math.floor(speed / 6)) {
            this.startFlashForEncounter(speed / 2);
        }
        if (n === Math.floor(speed / 2)) {
            BattleManager.playBattleBgm();
            this.startFadeOut(this.fadeSpeed());
            }
         }
      }
      Scene_Map.prototype.update = function() {
         _Scene_Map_update.call(this);
         if (this.PixelateFilter) {
            if (this.PixelateFilter.pixelSize <= 75) {
                this.PixelateFilter.pixelSize += 1;
            }
         }
      }
      Scene_Battle.prototype.update = function() {
         if (this.PixelateFilter) {
            if (this.PixelateFilter.pixelSize > 1) {
                this.PixelateFilter.pixelSize -= 1;
            }
            if (this.PixelateFilter.pixelSize <= 1 && !display_window) {
               this.createMessageWindow();
               display_window = true;
            }
         }
          _Scene_Battle_update.call(this);
      }
})();
 

Latest Threads

Latest Posts

Latest Profile Posts

Hang on, let me get my glasses...
giphy.gif
Bust Status 1!
Animated lipsynch as well as lineart. Just lineart so far...
Ramona Expression 1-2 L.gifRamona Expression 1-1 L.gifRamona Bust 1C.png
2 FPS 5 FPS Static
SF_People3_7 added!
index.php

Anyone want dynamically soft shadow? :kaohi:
1643106068630.png

Forum statistics

Threads
118,691
Messages
1,117,941
Members
155,819
Latest member
karlssonss
Top