WaTTi
Well-known member
- Joined
- Jan 4, 2015
- Messages
- 260
- Reaction score
- 8
well, i'm trying make a hud, but i have this problem.
https://www.youtube.com/watch?v=i1AlFLOHT7o
code
https://www.youtube.com/watch?v=i1AlFLOHT7o
code
Code:
// Made by www.youtube.com/jhgr16
{$CLEO .cs}
0390: load_txd_dictionary 'JORHEHUD'
038F: load_texture "0" as 20 // Load dictionary with 0390 first
038F: load_texture "10" as 21
038F: load_texture "20" as 22
038F: load_texture "30" as 23
038F: load_texture "40" as 24
038F: load_texture "50" as 25
038F: load_texture "60" as 26
038F: load_texture "70" as 27
038F: load_texture "80" as 28
038F: load_texture "90" as 29
038F: load_texture "100" as 30
038F: load_texture "c0" as 31
038F: load_texture "c35" as 32
038F: load_texture "c70" as 33
038F: load_texture "c100" as 34
0000: INICIAR.
0826: enable_hud 0
03F0: enable_text_draw 1
WHILE TRUE
WAIT 0
0226: 0@ = actor $PLAYER_ACTOR health
wait 0
if and
8029: not 0@ >= 101
0@ >= 91
then
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 30 position 560.0 98.0 size 150.0 130.0 RGBA 255 255 255 255
end
if and
8029: not 0@ >= 91
0@ >= 81
then
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 29 position 560.0 98.0 size 150.0 130.0 RGBA 255 255 255 255
end
if and
8029: not 0@ >= 81
0@ >= 71
then
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 28 position 560.0 98.0 size 150.0 130.0 RGBA 255 255 255 255
end
if and
8029: not 0@ >= 71
0@ >= 61
then
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 27 position 560.0 98.0 size 150.0 130.0 RGBA 255 255 255 255
end
if and
8029: not 0@ >= 61
0@ >= 51
then
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 26 position 560.0 98.0 size 150.0 130.0 RGBA 255 255 255 255
end
if and
8029: not 0@ >= 51
0@ >= 41
then
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 25 position 560.0 98.0 size 150.0 130.0 RGBA 255 255 255 255
end
if and
8029: not 0@ >= 41
0@ >= 31
then
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 24 position 560.0 98.0 size 150.0 130.0 RGBA 255 255 255 255
end
if and
8029: not 0@ >= 31
0@ >= 21
then
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 23 position 560.0 98.0 size 150.0 130.0 RGBA 255 255 255 255
end
if and
8029: not 0@ >= 21
0@ >= 11
then
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 22 position 560.0 98.0 size 150.0 130.0 RGBA 255 255 255 255
end
if and
8029: not 0@ >= 11
0@ >= 1
then
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 21 position 560.0 98.0 size 150.0 130.0 RGBA 255 255 255 255
end
if
8029: not 0@ >= 1
then
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 20 position 560.0 98.0 size 150.0 130.0 RGBA 255 255 255 255
end
END