how to add 2 health bars in 2 sides
#1
Posted 10 October 2011 - 01:00 PM
i am cearing a fighting game in game maker 8 it want to be assign to 1 for player 1 for enimi in the top right and top left corner
pleas help me
#2
Posted 10 October 2011 - 01:09 PM
draw_sprite(spr_healthbar,global.health1,x,y);
draw_sprite(spr_healthbar,global.health2,x,y);
Edited by PWL, 10 October 2011 - 01:10 PM.
#3
Posted 10 October 2011 - 01:12 PM
draw_healthbar(x,y,x2,y2,hp,c_green,c_green,c_red,0,1,1);Then just make another one, but change the variable and x/y positions.
#4
Posted 10 October 2011 - 01:35 PM
You have to create two variables e.g. global.health1 and global.health2, then make a healthbar-sprite with images 0-100 with increasing health. Then you can go something like this:
draw_sprite(spr_healthbar,global.health1,x,y);draw_sprite(spr_healthbar,global.health2,x,y);
dear pleas help i am new to game maker ware can i create those variables
#5
Posted 10 October 2011 - 01:37 PM
Uhm, you don't know how variables work? How the hell are you supposed to create an fighting game? Protip: Learn variables before doing ANYTHING.
You have to create two variables e.g. global.health1 and global.health2, then make a healthbar-sprite with images 0-100 with increasing health. Then you can go something like this:draw_sprite(spr_healthbar,global.health1,x,y);draw_sprite(spr_healthbar,global.health2,x,y);
dear pleas help i am new to game maker ware can i create those variables
#6
Posted 10 October 2011 - 01:41 PM
PWL: Why don't just use draw_healthbar?
draw_healthbar(x,y,x2,y2,hp,c_green,c_green,c_red,0,1,1);Then just make another one, but change the variable and x/y positions.
pleas tell me step by step i created basic one like this
creat an object
under that i create draw event and i put draw helth bar x1=16 y1=16 x2=160 y2=32
after that to my player i set
that helth to -3
and i put that helth object in to a room but iwant that hekth bar in right side but it is in left side
pleas help me
#7
Posted 10 October 2011 - 01:43 PM
Uhm, you don't know how variables work? How the hell are you supposed to create an fighting game? Protip: Learn variables before doing ANYTHING.
You have to create two variables e.g. global.health1 and global.health2, then make a healthbar-sprite with images 0-100 with increasing health. Then you can go something like this:draw_sprite(spr_healthbar,global.health1,x,y);draw_sprite(spr_healthbar,global.health2,x,y);
dear pleas help i am new to game maker ware can i create those variables
hmm iknow the variable (i am a software engineering undergraduate) but i am new to this game maker thats y
#8
Posted 10 October 2011 - 01:46 PM
And you've got an F in English? Can't understand **** you sayin'.
Uhm, you don't know how variables work? How the hell are you supposed to create an fighting game? Protip: Learn variables before doing ANYTHING.
You have to create two variables e.g. global.health1 and global.health2, then make a healthbar-sprite with images 0-100 with increasing health. Then you can go something like this:draw_sprite(spr_healthbar,global.health1,x,y);draw_sprite(spr_healthbar,global.health2,x,y);
dear pleas help i am new to game maker ware can i create those variables
hmm iknow the variable (i am a software engineering undergraduate) but i am new to this game maker thats y
#9
Posted 10 October 2011 - 01:47 PM
creat an object
under that i create draw event and i put draw helth bar x1=16 y1=16 x2=160 y2=32
after that to my player i set
that helth to -3
and i put that helth object in to a room but iwant that hekth bar in right side but it is in left side
pleas help me
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











