Project1

标题: class Spriteset_Map [打印本页]

作者: 金芒芒    时间: 2023-11-14 17:20
标题: class Spriteset_Map
本帖最后由 金芒芒 于 2023-11-14 17:22 编辑

def update_player_bar
hp=($scene.team_groups[@group-1]@character.hp * 100)/($scene.team_groups[@group-1]@character.maxhp): ($scene.enermy_groups[@group-1]@character.hp * 100)/($scene.enermy_groups[@group-1]@character.maxhp)
$game_screen.pictures[19-28].show("hp.png",0,35,435,hp_p,100,255,0)
血液= [24,25,26,27,28][19,20,21,22,23]
x= 115:615
for i in 血液
$game_screen.pictures.show("蓝条", 0,
x, 670, 90, 100, 255, 0)

x+=87

end
刷新pictures[24,25,26,27,28]:[19,20,21,22,23]
在游戏开关[5]=真的时候显示




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