C-TT(Colméia - Transition to Teleport)
#1
C-TT(Colméia - Transition to Teleport)
Version: 1.0

Introduction
Permit execute a transition when teleport.

Features
  • configuration of duration and ambiguity

Screenshots
Not need.

Demo
Download of the demo

Script

Code:
#===============================================================
# C-TT(Colméia - Transition to Teleport)
#---------------------------------------------------------------
#by:    zecomeia
#date:  28//12/2009
#for:   RGSS2
#http://colmeia-do-ze.blogspot.com/
#---------------------------------------------------------------
#Crie uma pasta com o nome Transitions para os arquivos de
#transição.
#
#Use o comando chamar script e coloque:
#
#$game_temp.transition = [duração,"nome do arquivo",ambiguidade]
#
#OBS1:O nome do arquivo deve estar entre aspas e não é preciso
#colocar a extensão do arquivo.
#OBS2:Se não quiser usar transição em um teleporte use:
#
#$game_temp.transition = [0,"",0]
#
#Após o chamar script, basta usar o comando de teleporte
#normalmente.
#===============================================================
class Game_Temp
  attr_accessor :transition
  alias default_initialize initialize
  def initialize()
    @transition = Array.new
    @transition = [0,'',0]
    default_initialize()
  end
end
class Scene_Map < Scene_Base
  def update_transfer_player
    return unless $game_player.transfer?
    fade = (Graphics.brightness > 0)   
    fadeout(30) if fade and $game_temp.transition[1] == ''
    Graphics.freeze
    @spriteset.dispose
    $game_player.perform_transfer
    $game_map.autoplay
    $game_map.update
    if $game_temp.transition[1] == ''
      Graphics.wait(15)
    else
      #$game_map.interpreter.update
      Graphics.transition($game_temp.transition[0], "Graphics/Transitions/"+$game_temp.transition[1],$game_temp.transition[2])
    end
    @spriteset = Spriteset_Map.new
    fadein(30) if fade
    Input.update
  end
end

Instructions
Install the script up of "main".

Create a folder with name "Transitions" for the transition pictures.

Use call script and write:

$game_temp.transition = [duration,"image file name",ambiguity]

Note1:The image file name would have quotes and don't need file extension.
Note2:If don't want to use transition on a teleport, use:

$game_temp.transition = [0,"",0]

After call the script, just use the teleport command normally.

FAQ
No questions yet.

Credits and Thanks
by zecomeia

Terms and Conditions
[Image: 88x31.png]

Scripts RGSS, Resources, Tutorials and Translations by zecomeia is licensed under a
Creative Commons Atribuição-Uso Não-Comercial-Compartilhamento pela mesma Licença 2.5 Brasil License.
Permissions beyond the scope of this license may be available at Santuário RPG Maker
Reply }


Messages In This Thread
C-TT(Colméia - Transition to Teleport) - by zecomeia - 03-14-2010, 03:30 AM



Users browsing this thread: 1 Guest(s)