Thursday, December 10, 2015

Dev-Day Episode 54: Madness Of Men

making a healthbar.

but.

when the code's in the draw event,

arlette,

she's not drawn.











this needs to be solved.

i can't have an invisible player.
...


...
alright.

fixed it.

the code is real simple.

draw_self();

draw_healthbar(x-640,y-320,x-40,y-300,hp,c_black, c_red, c_lime, 0, true, true);


i just originally forgot to include the bit where it draws itself.

it even works a little bit.

now instead of restarting the room when arlette falls out of the world, it restarts when hp hits 0.

if (y>room_height){
hp=hp-10;
}

if (hp<0){
room_restart();
}

now i just need to figure out how to get the bar at the top layer, and then i can start making it look good.

i'll be doing that tomorrow.

No comments:

Post a Comment