Project1
标题:
影子脚本冲突!
[打印本页]
作者:
372349799
时间:
2009-10-8 10:22
标题:
影子脚本冲突!
本帖最后由 372349799 于 2009-10-10 22:16 编辑
Project1.rar
(201.24 KB, 下载次数: 81)
2009-10-8 10:26 上传
点击文件名下载附件
本人使用了随机地图脚本和影子脚本,发现脚本冲突……如何解决?
作者:
372349799
时间:
2009-10-8 10:27
附件已上传
作者:
372349799
时间:
2009-10-8 13:38
作者:
传说中di
时间:
2009-10-9 01:33
把脚本的上下位置换下试试
作者:
372349799
时间:
2009-10-9 21:23
很悲伤的告诉你,那是不行的~~
那样的话,随机地图脚本可以运行,但影子系统失效
作者:
神思
时间:
2009-10-9 23:46
放到影子系统下面即可解决
#==============================================================================
# ■ Spriteset_Map
#==============================================================================
class Spriteset_Map
#--------------------------------------------------------------------------
# ● 初始化对像
#--------------------------------------------------------------------------
def initialize
$onscreen = []
@viewport1 = Viewport.new(0, 0, 640, 480)
@viewport2 = Viewport.new(0, 0, 640, 480)
@viewport3 = Viewport.new(0, 0, 640, 480)
@viewport2.z = 200
@viewport3.z = 5000
@tilemap = Tilemap.new(@viewport1)
@tilemap.tileset = RPG::Cache.tileset($game_map.tileset_name)
for i in 0..6
autotile_name = $game_map.autotile_names[i]
@tilemap.autotiles[i] = RPG::Cache.autotile(autotile_name)
end
@tilemap.map_data = $game_map.data
@tilemap.priorities = $game_map.priorities
@panorama = Plane.new(@viewport1)
@panorama.z = -1000
@fog = Plane.new(@viewport1)
@fog.z = 3000
@character_sprites = []
@party_sprites = []
for i in $game_map.events.keys.sort
s = Sprite_Character.new(@viewport1, $game_map.events[i])
@character_sprites.push(s)
s = Sprite_Character_Shadow.new(@viewport1, $game_map.events[i])
@character_sprites.push(s)
s = Sprite_Character_False.new(@viewport1, $game_map.events[i])
@character_sprites.push(s)
$onscreen[i] = true
end
@party_sprites.push(Sprite_Character.new(@viewport1, $game_player))
@party_sprites.push(Sprite_Character_False.new(@viewport1, $game_player))
@party_sprites.push(Sprite_Character_Shadow.new(@viewport1, $game_player))
@weather = RPG::Weather.new(@viewport1)
@picture_sprites = []
for i in 1..50
@picture_sprites.push(Sprite_Picture.new(@viewport2,
$game_screen.pictures[i]))
end
@timer_sprite = Sprite_Timer.new
update
end
end
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1