Status
Not open for further replies.

Oscar92player

Veteran
Veteran
Joined
Jul 26, 2012
Messages
524
Reaction score
239
First Language
Spanish
Primarily Uses
RMMV
Hello, everyone!

I'm in the need to request a plugin, a conversion of a script that I was using with RPG Maker VX and VX Ace. This plugin allowed the battle transition to be more "Final Fantasy-esque", since it creates a swirl effect when the game calls the battlestart.

Here is a good example image of the effect when using this script:
upload_2019-6-7_18-5-31.png

What this script does, is to make a screen capture of the game, and then initiate the battlestart sequence with an effect on that same screenshot.

I don't recall exactly who made this plugin, only that it was originally made for VX Ace, and then converted to VX. Here's the entire code of the VX version:
Code:
module FrameBuffer
 
  def self.start(frames = 1, viewport_z = 10000)
    dispose unless disposed?
    this_frame =  Graphics.snap_to_bitmap
    @buffer = []
    @viewport = Viewport.new(0,0,544,416)
    @viewport.z = viewport_z
   
    frames.times do
      sprite = Sprite.new(@viewport)
      sprite.bitmap = this_frame.clone
      sprite.x = Graphics.width / 2
      sprite.y = Graphics.height / 2
      sprite.ox = Graphics.width / 2
      sprite.oy = Graphics.height / 2
      @buffer.push(sprite)
    end
    this_frame.dispose
  end
   
  def self.dispose
    return if disposed?
    @buffer.each {|sprite| sprite.dispose}
    @viewport.dispose if @viewport
    @buffer = nil
  end
   
  def self.disposed?
    !@buffer
  end
#===============================================================================
# Deletes the oldest frame bitmaps and shuffles all the bitmaps down
# replacing the first frame with a fresh snap shot.
#===============================================================================
  def self.cycle
    return if disposed?
    @buffer[-1].bitmap.dispose
    @buffer.each_index do |i|
      next if i == 0
      @buffer[i].bitmap = @buffer[i - 1].bitmap
    end
    @buffer[0].bitmap = Graphics.snap_to_bitmap
  end
#===============================================================================
# Set's all the frame buffer sprites to use a fresh snapshot.
#===============================================================================
  def self.refresh
    this_frame = Graphics.snap_to_bitmap
    @buffer.each do |sprite|
      sprite.bitmap.dispose
      sprite.bitmap = this_frame.clone
    end
    this_frame.dispose
  end
 
  def self.[](num)
    return nil if disposed?
    return @buffer[num]
  end
 
end

class Scene_Map < Scene_Base
 
#===============================================================================
# Preprocessing for Battle Screen Transition.
#===============================================================================

  alias fbst_call_battle call_battle
  def call_battle
    Graphics.update
    Graphics.freeze
   
    FrameBuffer.start(3)
   
    FrameBuffer[0].z = 0
    FrameBuffer[0].zoom_x = 1
    FrameBuffer[0].zoom_y = 1
    FrameBuffer[0].opacity = 235
    FrameBuffer[0].angle = 0
    FrameBuffer[0].blend_type = 0

    FrameBuffer[1].z = 1
    FrameBuffer[1].zoom_x = 1.2
    FrameBuffer[1].zoom_y = 1.2
    FrameBuffer[1].opacity = 128
    FrameBuffer[1].angle = 2872
    FrameBuffer[1].blend_type = 0
   
    FrameBuffer[2].z = 2
    FrameBuffer[2].zoom_x = 0.8
    FrameBuffer[2].zoom_y = 0.9
    FrameBuffer[2].opacity = 12
    FrameBuffer[2].angle = 5744
    FrameBuffer[2].blend_type = 1
   
    fbst_call_battle
   
    #@spriteset.dispose_characters
    #BattleManager.save_bgm_and_bgs
    #BattleManager.play_battle_bgm
    #Sound.play_battle_start
  end
 
#===============================================================================
# Execute Pre-battle Transition
#===============================================================================

  def perform_battle_transition
    Graphics.transition(1)
    (0..30).each do |i|
      Graphics.brightness = 255
      FrameBuffer.refresh
      Graphics.frame_reset
      Graphics.brightness = 255 - (255 * ((i - 20) / 10.0)) if i > 20
      Graphics.update
    end
    FrameBuffer.dispose
    Graphics.freeze
  end
 
end

I hope you can help me with this, since it is a good effect for the Battle Transitions, and it would be helpful for other people that are looking for something like this.

Thanks in advance!
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
3,822
Reaction score
1,449
First Language
Dutch
Primarily Uses
RMMV
SRD has a plugin which you can make in a custom battle intro here or here which is a comment event Now i dont know if this what you look for.
but the setup can be a bit of time, but you can create a result you want, you can set it up for different scenes as well.

I dont know if there are any others though.
 
Last edited:

Oscar92player

Veteran
Veteran
Joined
Jul 26, 2012
Messages
524
Reaction score
239
First Language
Spanish
Primarily Uses
RMMV
SRD has a plugin which you can make in a custom battle intro here or here which is a comment event Now i dont know if this what you look for.
but the setup can be a bit of time, but you can create a result you want, you can set it up for different scenes as well.

I dont know if there are any others though.

I know those plugins, but I'm afraid they aren't exactly what I'm looking for.

I'm looking more for a conversion of the script I've put on the main post to a plugin, or looking for a similar method to make that swirl effect previous to the battle scene.
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
3,822
Reaction score
1,449
First Language
Dutch
Primarily Uses
RMMV
It's will be more PIXI related one, but if you have discord, you can try in the lunatic server and see if anyone there knows it, or make a commission there that is willing to make it for you. they are really helpfull though :) but other than that, i dont know any plugin with that whirling effect
or how to convert it to a plugin. but the 2nd link can be the intro you can go for as you can make any common event the way you want.

because i think you can make a snapshot from a script call and rotate that into battle, but I haven't tested that. but it might be possible.

Else, I hope you find what you looking for :)
 

Oscar92player

Veteran
Veteran
Joined
Jul 26, 2012
Messages
524
Reaction score
239
First Language
Spanish
Primarily Uses
RMMV
It's will be more PIXI related one, but if you have discord, you can try in the lunatic server and see if anyone there knows it, or make a commission there that is willing to make it for you. they are really helpfull though :) but other than that, i dont know any plugin with that whirling effect
or how to convert it to a plugin. but the 2nd link can be the intro you can go for as you can make any common event the way you want.

because i think you can make a snapshot from a script call and rotate that into battle, but I haven't tested that. but it might be possible.

Else, I hope you find what you looking for :)

Well, I have to apologize, since part of your first answer helped me a lot, regarding the SRD Common Event Battle Intro plugin. In communion with the Filter Controller made by Tsukimi (or cji3bp62000), I've accomplished the creation of a great Battle Transition effect:

It is not exactly the same as the VX version of my project, but I can consider this better, since it allows me to use images and animations in the middle of the filter.

Again, I apologize for my fast answer, and thanks for the help.
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
3,822
Reaction score
1,449
First Language
Dutch
Primarily Uses
RMMV
no problem, somethimes you need to check with params and need project to see if its possible what you need without messing on your project,
the video on the effect is nice, but its possible to rotate the image for a whirling effect, but if you play around, you can get the one you love and use it to get a better effect or random effect in each area (if you pleased so).

But the effect looks great. Hope to see more of your game in progress. Have a wonderfull day.

(in case you need it closed due solved, report your post)
 
Last edited:

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,001
Reaction score
8,894
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

Still early in development but feel like I'm hitting a wall. Either I can't find plugins to do what I need, or they're paywalled :/
Screenshot-2021-05-02-at-15-07-54.png


Tivadar will help you travel to distant places in Eniko: Ghosts Of Grace

Finally done with the school project, here's the raw video of it. o_O :smile:

Forum statistics

Threads
111,176
Messages
1,058,990
Members
144,423
Latest member
rafaelydubay
Top