...I updated the engine... with WIP things. WIP bombs, WIP platforms, and... still WIP health. Just look at it. Its the white and black circles as i dont have a good sprite yet..
Check the first post for the link
My coding involving the health render:
Check the first post for the link
My coding involving the health render:
Code:
DRAW EVENT:
for (i=0 ; i<maxhp; i=i+1)
{
if (i <hp)
draw_sprite(spr_heart_whole,0,posX, posY);
else
draw_sprite(spr_heart_empty,0,posX, posY)
}
STEP EVENT:
for (i=0 ; i<maxhp; i=i+1)
{
cellX = i mod 10;
cellY = i div 10;
posX = cellX * 16 + view_xview+1;
posY = cellY * 16 + view_yview+16;
}