How to make a HuD
#1
Posted 03 July 2012 - 08:34 PM
#2
Posted 03 July 2012 - 08:45 PM
#3
Posted 03 July 2012 - 09:25 PM
that's right what he said but u have to add the actions in the draw event, also make sure u don't add the draw event in a object with a sprite, if u do that, the object won't be seen.Hello guys i have a problem. I am making a sidescrolling shooter. Basicly the screen size is 640x480. You can go down and up and the plane moves it self. Anyway i want to make a HUD to show score, health and lives. But i don`t know how to do it. I have a player object. Anyway can anyone explain me in detail and not over code cuz i ve seen tutorials and i got confused can anyone tell me how to do it with drag and drop? Thanks in advance!
#4
Posted 03 July 2012 - 10:17 PM
Yh i knew all that but how can i do it that is why i made the thread?that's right what he said but u have to add the actions in the draw event, also make sure u don't add the draw event in a object with a sprite, if u do that, the object won't be seen.
Hello guys i have a problem. I am making a sidescrolling shooter. Basicly the screen size is 640x480. You can go down and up and the plane moves it self. Anyway i want to make a HUD to show score, health and lives. But i don`t know how to do it. I have a player object. Anyway can anyone explain me in detail and not over code cuz i ve seen tutorials and i got confused can anyone tell me how to do it with drag and drop? Thanks in advance!
#5
Posted 04 July 2012 - 12:44 PM
Also, you might want to decrease this object's depth since you want the HUD to appear on top of everything else.
Edited by loverock125, 04 July 2012 - 12:44 PM.
#6
Posted 06 July 2012 - 04:53 PM
This code would make the sprite draw in its current state:
draw_sprite_ext(sprite_index,image_index,x,y,image_xscale,image_yscale,image_angle,image_blend,image_alpha)
#7
Posted 14 August 2012 - 06:25 PM
/* the -32 is the length of the healthbar and the -2 is the heaight. the direction can be changed to any direction you want. its best to leave it as direction.the x_view and y_view is the view of the screen and will stay there no matter waht goes on */ draw_healthbar(x_xview,y_yview,x_xview-32,y_yview-2,100,c_black,c_red,c_green,direction,1,1) /* this code is to draw any image(sprite) on the screen at the second pixel to the right and buttom. this can also be done with backgrounds. */ draw_sprite(sprite01,all,x_xview+2,y_yview+2) draw_background(background01,x_xview+2,y_yview+2)
check out my game here



I'ts like EBAY... Only Free!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











