Users browsing this thread: 9 Guest(s)
PBG's ADVENTURE! (Yeah!)
#24
The last time I did a zelda heart-styled HP system I took the lazy route because I argue with for loops too much. Made a sprite with 4 subimages, 1 for each heart "quarter".

And then something like

DRAW EVENT
if life > 0
{if life > 3 draw_spritRolleyesxt(spr_hud_hp,3,view_xview[0]+xx,view_yview[0]+yy,1,1,0,-1,1)
else draw_spritRolleyesxt(spr_hud_hp,life-1,view_xview[0]+xx,view_yview[0]+yy,1,1,0,-1,1)
}
if life > 4
{if life > 7 draw_spritRolleyesxt(spr_hud_hp,3,view_xview[0]+xx+20,view_yview[0]+yy,1,1,0,-1,1)
else draw_spritRolleyesxt(spr_hud_hp,life-5,view_xview[0]+xx+20,view_yview[0]+yy,1,1,0,-1,1)
}

that's two hearts, no STEP EVENT interference.

I made that off top of my head so probably isn't reliable, and I don't suggest using it without testing.
Reply
Thanked by: Joxon


Messages In This Thread
PBG's ADVENTURE! (Yeah!) - by Joxon - 08-17-2015, 12:12 AM
RE: PBG's ADVENTURE! (Yeah!) - by Joxon - 08-18-2015, 07:18 PM
RE: PBG's ADVENTURE! (Yeah!) - by Joxon - 08-29-2015, 08:38 PM
RE: PBG's ADVENTURE! (Yeah!) - by TheShyGuy - 08-29-2015, 09:55 PM
RE: PBG's ADVENTURE! (Yeah!) - by Joxon - 08-29-2015, 10:12 PM
RE: PBG's ADVENTURE! (Yeah!) - by TheShyGuy - 08-29-2015, 10:56 PM
RE: PBG's ADVENTURE! (Yeah!) - by Joxon - 08-30-2015, 12:36 PM
RE: PBG's ADVENTURE! (Yeah!) - by TheShyGuy - 08-30-2015, 02:28 PM
RE: PBG's ADVENTURE! (Yeah!) - by Joxon - 08-30-2015, 02:47 PM
RE: PBG's ADVENTURE! (Yeah!) - by TheShyGuy - 08-30-2015, 03:16 PM
RE: PBG's ADVENTURE! (Yeah!) - by Joxon - 08-30-2015, 03:23 PM
RE: PBG's ADVENTURE! (Yeah!) - by TheShyGuy - 08-30-2015, 03:36 PM
RE: PBG's ADVENTURE! (Yeah!) - by Joxon - 08-30-2015, 03:38 PM
RE: PBG's ADVENTURE! (Yeah!) - by TheShyGuy - 08-30-2015, 04:08 PM
RE: PBG's ADVENTURE! (Yeah!) - by Joxon - 08-30-2015, 04:18 PM
RE: PBG's ADVENTURE! (Yeah!) - by TheShyGuy - 08-30-2015, 04:43 PM
RE: PBG's ADVENTURE! (Yeah!) - by Joxon - 08-30-2015, 04:55 PM
RE: PBG's ADVENTURE! (Yeah!) - by TheShyGuy - 08-30-2015, 04:57 PM
RE: PBG's ADVENTURE! (Yeah!) - by Joxon - 08-30-2015, 05:30 PM
RE: PBG's ADVENTURE! (Yeah!) - by TheShyGuy - 08-30-2015, 07:49 PM
RE: PBG's ADVENTURE! (Yeah!) - by Joxon - 08-30-2015, 07:52 PM
RE: PBG's ADVENTURE! (Yeah!) - by TheShyGuy - 08-30-2015, 07:59 PM
RE: PBG's ADVENTURE! (Yeah!) - by Joxon - 08-30-2015, 08:05 PM
RE: PBG's ADVENTURE! (Yeah!) - by Silversea - 09-04-2015, 12:20 AM
RE: PBG's ADVENTURE! (Yeah!) - by Joxon - 11-04-2015, 09:27 AM
RE: PBG's ADVENTURE! (Yeah!) - by Joxon - 11-07-2015, 11:14 AM

Forum Jump: