Project1

标题: 战斗背景,怎样能够把扭来扭去的效果关掉啊? [打印本页]

作者: icogogogo    时间: 2008-3-17 21:51
标题: 战斗背景,怎样能够把扭来扭去的效果关掉啊?
战斗背景

我采用国外网站的脚本

已经会在战斗前调用变量来改变战斗背景了,

但是还有一个问题,背景确确实实变为了调用的图片,我用洞穴的图片背景真的变得很黑很黑,

问题是那个图片仍然在扭来扭去的,怎样能够把扭来扭去的效果关掉啊? [LINE]1,#dddddd[/LINE]版务信息:本贴由楼主自主结贴~
作者: icogogogo    时间: 2008-3-17 21:52
我用了这个脚本

##################################################
# MOG_BATTLEBACK_XP V1.0                                    #
##################################################
# By Moghunter
# http://www.atelier-rgss.com
##################################################
# Permite utilizar as imagens de Battleback no lugar da
# imagem distorcida do mapa.
# No entanto é possível ativar a versão VX utilizando as
# switches no momento que desejar.
##################################################
# Dentro da pasta GRAPHICS crie uma outra pasta com
# o nome de BATTLEBACKS, por fim coloque as imagens
# do battleback dentro pasta.
# Para selecionar a imagem do Battleback use o seguinte
# código em um evento qualquer usando o comando
# SCRIPT.
#
# $game_system.bb = "FILE_NAME"
#
# No lugar do FILE_NAME coloque o nome do arquivo que
# corresponde o nome do Battleback.
# Se deseja que o battleback seja o mapa de fundo,
# coloque um nome de arquivo inexistente.
#
##################################################
#############
#   CONFIG    #
#############
module MOG_VX02
#Definição da switch que ativa o efeito Wave.  
BB_WAVE_SWITCH = 2
#Definição da switch que ativa a versão VX.
BB_VXEDITION_SWITCH = 3
end
#-------------------------------------------------
$mogscript = {} if $mogscript == nil
$mogscript["battleback_xp"] = true
#-------------------------------------------------
###############
# Game_System #
###############
class Game_System
attr_accessor :bb
alias mog_vx02_initialize initialize
def initialize
mog_vx02_initialize
@bb = ""
end
end
###############
# Module Cache #
###############
module Cache  
  def self.battleback(filename)
    load_bitmap("Graphics/battlebacks/", filename)
  end
end
#################
# Spriteset_Battle #
#################
class Spriteset_Battle
include MOG_VX02
  def create_battleback
    @battleback_sprite = Sprite.new(@viewport1)
    source = Cache.battleback($game_system.bb.to_s) rescue empty
    if  $game_switches[BB_WAVE_SWITCH] == true
    bitmap = Bitmap.new(640, 480)
    else
    bitmap = Bitmap.new(544, 416)
    end
    bitmap.stretch_blt(bitmap.rect, source, source.rect)
    bitmap.radial_blur(90, 12) if  $game_switches[BB_VXEDITION_SWITCH] == true
    @battleback_sprite.bitmap = bitmap
    wave_on if  $game_switches[BB_WAVE_SWITCH] == true
end
def wave_on
    @battleback_sprite.ox = 320
    @battleback_sprite.oy = 240
    @battleback_sprite.x = 272
    @battleback_sprite.y = 176  
    @battleback_sprite.wave_amp = 8
    @battleback_sprite.wave_length = 240
    @battleback_sprite.wave_speed = 120     
end
def empty
   @battleback_sprite.bitmap =  $game_temp.background_bitmap
end
def create_battlefloor
    if  $game_switches[BB_VXEDITION_SWITCH] == true
    @battlefloor_sprite = Sprite.new(@viewport1)
    @battlefloor_sprite.bitmap = Cache.system("BattleFloor")
    @battlefloor_sprite.x = 0
    @battlefloor_sprite.y = 192
    @battlefloor_sprite.z = 1
    @battlefloor_sprite.opacity = 128
    else
    @battlefloor_sprite = Sprite.new(@viewport1)
    end
  end
end
作者: 禾西    时间: 2008-3-17 22:15
.
作者: icogogogo    时间: 2008-3-17 22:28
按照你说的已经删去了,还是那个样子没有什么变化啊

到底怎么回事呀


作者: 禾西    时间: 2008-3-17 23:00
……看不見人家本來就有開關
BB_WAVE_SWITCH = 2

無視上帖,2號開關關閉就可以了

PS:這是西班牙語嗎? [LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者: icogogogo    时间: 2008-3-17 23:18
3Q!{/wx}{/wx}{/wx}

多亏了你,战斗背景终于能自由更换啦!



我代表我的主角感谢你{/cy}




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1