トピック
受付中
DereK Derekninja555

HP Bar Help

So for one of the games I'm working on (try and guess which) needs a health bar. The player has 20 health. 20/20 health would look like this [][][][][][] (pretend that is yellow for the []) And if you get hit lets say 7 damage it would look like this [][][]()()() (() means red) PLS HELP
2そうだね
プレイ済み
返信[1]
親投稿
stickman yugih03
same i need it too for a random undertale clone sadly i dont know but i wish i can help
0そうだね
プレイ済み
返信[2]
親投稿
Hanzo rzsense
ACLS:HP=20:RF=0 FOR I=0 TO 19 VSYNC 1:GFILL 80+I*4,8,80+I*4+2,15,#YELLOW NEXT I LOCATE 2,3:?"Pressing A button gives you 7 damages." WHILE TRUE VSYNC 1 IF(BUTTON(2)AND #A)!=0 && RF<=0 THEN RF=7 IF RF>0 THEN DEC HP,(HP>0):DEC RF GFILL 80+HP*4,8,80+HP*4+2,15,#RED ENDIF WEND
0そうだね
未プレイ
返信[3]
親投稿
zag Tall-T
How wouldy you add defens?
1そうだね
未プレイ