daipeng76 发表于 2011-4-26 14:45:25

事件版地图显示头像和血魔

事件版地图显示头像和血魔


事件脚本加入:(随行处理)
$game_map.screen.pictures.show("头像", 0, 0, 0, 100, 100, 255, 0)    # 头像尺寸96x96px放在\Graphics\Pictures下
$game_map.screen.pictures.show("血魔底色", 0, 0,96,100, 100, 255, 0)# 血魔底色96x10px黑色块
$game_map.screen.pictures.show("血魔底色", 0, 0,106,100, 100, 255, 0)
$actors1_hp=$game_actors.hp*100/$game_actors.maxhp         #定义变量$actors1_hp=角色实际血量展总血量的百分比
$actors1_mp=$game_actors.mp*100/$game_actors.maxmp      #定义变量$actors1_mp=角色实际魔量展总魔量的百分比
$game_map.screen.pictures.show("血", 0, 0,96, $actors1_hp, 100, 255, 0)      # 血魔底色96x10px红色块
$game_map.screen.pictures.show("魔", 0, 0,106, $actors1_mp, 100, 255, 0)   # 血魔底色96x10px   蓝色块
------------------------------------------------------------------------------------------------------------------
事件显示图片方法:
$game_screen.pictures.show(name, origin, x, y, zoom_x, zoom_y, opacity, blend_type)
其中:
#   name       : 文件名                     #   origin         : 原点
#   x            : X 坐标                        #   y                : Y 坐标
#   zoom_x       : X 方向放大率      #   zoom_y       : Y 方向放大率
#   opacity      : 不透明度               #   blend_type   : 合成方式
#   duration   : 时间
pictures, 编号大的数字可以遮掉小的画面,如pictures遮掉pictures
页: [1]
查看完整版本: 事件版地图显示头像和血魔