Super Simple Map Transition Scriptette
#1
Super Simple Map Transition Scriptette
Version 1.0

Seriously? This few sets of lines was all that was missing to allow you to have something more than a fade-to effect when you go from one map to another? With this, you can use any of the 'transitions' in your Graphics\Transitions folder for map transitions as well as your battle transitions!

I do not qualify this as an actual script, but a scriptette. It is a small snippet that can be directly edited/inserted into your default script without hampering any other feature. The only thing that could be affected is if this edit is overwritten by another script that does not include this alteration.

All you need to do is perform some coder's surgery on Scene_Map. First, go to line 276 where you encounter this line:
Code:
    Graphics.transition(20)

That line performs your transition effect that lasts 20 frames, or 1/2 a second. HOWEVER, there is no graphic transition effect tied to it. It is a simple fade-to effect..... Let's change that!!!

Replace that one line with this bit of code:
Code:
    if $game_temp.transition_name == ""
        Graphics.transition(20)
      else
        Graphics.transition(40, "Graphics/Transitions/" +
          $game_temp.transition_name)
        $game_temp.transition_name = ""
      end

This revision looks at the 'transition_name' value in your Game_Temp class. If this value is empty, it performs the traditional fade-to transition that lasts 20 frames. However, if the transition_name value does contain a filename, it performs a transition with the image stored within the Graphics/Transitions folder. And once completed, it erases the value stored making the system restored to a default setting.

To use, simply make a Script Call to assign a transition to the '$game_temp.transition_name' value before you run a 'Transfer Player' command:
Code:
@>Script Call: $game_temp.transition_name="017-Blind01"
@>Transfer Player[013: Mountain Pass] (053,102), Down

That's actually it!

Couldn't they just add a transition dropdown in the transfer player widget?
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Messages In This Thread
Super Simple Map Transition Scriptette - by DerVVulfman - 10-02-2013, 05:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Super Simple Vehicle System - Enhanced DerVVulfman 65 94,738 06-02-2023, 06:16 PM
Last Post: Sujabes467
   DerVV's Simple Popup System DerVVulfman 4 12,234 10-08-2017, 04:53 PM
Last Post: DerVVulfman
   Super Simple MCISendString DerVVulfman 0 4,889 03-09-2017, 04:52 AM
Last Post: DerVVulfman
   Super Simple Vehicle System - Enhanced - Vehicle Placement DerVVulfman 2 6,143 05-22-2014, 04:42 AM
Last Post: DerVVulfman
   L's Simple Main Menu #1 - DMS Edit Landarma 4 11,747 01-18-2013, 07:13 AM
Last Post: Landarma
   Simple SP Bonus Damage DerVVulfman 4 9,415 05-01-2012, 06:32 PM
Last Post: DerVVulfman
   Super Simple Cursed Items DerVVulfman 0 4,719 03-22-2012, 03:34 AM
Last Post: DerVVulfman
   Super Simple Vehicle System: Caterpillar Compatability DerVVulfman 12 21,325 10-31-2011, 04:14 AM
Last Post: DerVVulfman
   Super Simple Vehicle Add-On: Script Call Transfer DerVVulfman 9 17,710 12-22-2010, 05:46 AM
Last Post: DerVVulfman
   L's Simple Main Menu #3 - 1-person Landarma 1 7,724 10-14-2010, 04:25 AM
Last Post: Landarma



Users browsing this thread: 1 Guest(s)