事件里的这些执行内容用脚本怎么写啊?
想全部搬到Scene_Map里了。。。本事件是33号事件 Audio.se_play("Audio/SE/089-Attack01")$game_system.se_play(SE文件名,音量,节拍)
$game_map.events[编号].
面向固定开关: @direction_fix=true/false
更改图形:
@tile_id=0
@character_name=新的行走图文件名
@character_hue=新的行走图色相
@direction=新的朝向 取值2 4 6 8(下 左 右 上)
@pattern=新的步伐 取值0 1 2 3(对应行走图从左到右的4格)
向下移动: move_down 引用第1楼ugvynietg于2010-01-28 12:35发表的 :
Audio.se_play("Audio/SE/089-Attack01")
$game_system.se_play(SE文件名,音量,节拍)
$game_map.events[编号].
面向固定开关: @direction_fix=true/false
更改图形:
.......
这样写吗?为什么会出错呢
Audio.se_play("Audio/SE/089-Attack01")
$game_system.se_play("089-Attack01",80,100)
$game_map.events.move_speed = 6
#更改图形:
$game_map.events.tile_id = 0
$game_map.events.character_name = "飞刀"
$game_map.events.character_hue=0
$game_map.events.direction = 2
$game_map.events.pattern = 0
$game_map.events.direction_fix=true
$game_map.events.move_down #==============================================================================
# ■ Game_Character (分割定义 1)
#------------------------------------------------------------------------------
# 处理角色的类。本类作为 Game_Player 类与 Game_Event
# 类的超级类使用。
#==============================================================================
class Game_Character
#--------------------------------------------------------------------------
# ● 定义实例变量
#--------------------------------------------------------------------------
attr_reader :id # ID
attr_reader :x # 地图 X 坐标 (理论坐标)
attr_reader :y # 地图 Y 坐标 (理论坐标)
attr_reader :real_x # 地图 X 坐标 (实际坐标 * 128)
attr_reader :real_y # 地图 Y 坐标 (实际坐标 * 128)
attr_reader :tile_id # 元件 ID(0 为无效)
attr_reader :character_name # 角色 文件名
attr_reader :character_hue # 角色 色相
attr_reader :opacity # 不透明度
attr_reader :blend_type # 合成方式
attr_reader :direction # 朝向
attr_reader :pattern # 图案
attr_reader :move_route_forcing # 移动路线强制标志
attr_reader :through # 穿透
attr_accessor :animation_id # 动画 ID
attr_accessor :transparent # 透明状态
自己看属性吧。。只读的属性能写入么?
改成 attr_accessor
页:
[1]