I need Game Maker help thread - Printable Version +- The VG Resource (https://www.vg-resource.com) +-- Forum: Archive (https://www.vg-resource.com/forum-65.html) +--- Forum: July 2014 Archive (https://www.vg-resource.com/forum-139.html) +---- Forum: Other Stuff (https://www.vg-resource.com/forum-6.html) +----- Forum: Gaming Discussion (https://www.vg-resource.com/forum-18.html) +----- Thread: I need Game Maker help thread (/thread-4503.html) |
I need Game Maker help thread - ZeldaClassicEXPERT - 02-20-2009 Need help on Game Maker? Ask here folks! How do I make a "drainable" hp bar that drains as hp goes down say for PACMAN please? Thank you. RE: I need Game Maker help thread - Alpha Six - 02-20-2009 Isn't this what the Game Maker Community is for... ? RE: I need Game Maker help thread - ZeldaClassicEXPERT - 02-20-2009 True but no luck their yet. However I got an idea for my hp bar thing though. RE: I need Game Maker help thread - Koopaul - 02-20-2009 Oh, I'm sorry. That's probably where you'll get all your answers though. RE: I need Game Maker help thread - Jordizzle - 02-20-2009 Quote:Isn't this what the Game Maker Community is for... ?If they're anything like they were back when I went there, they'd all say RTFM and laugh at him. Aaaaanyways~ You need to make an HP variable, and a max HP variable... then; draw_set_color(cl_black) draw_rectangle(x,y,x+102,y+18,false) draw_set_color(cl_green) draw_rectangle(x+1,y+1,x+(max_hp/hp)*100,y+16,false) in draw event. If you need a more elaborate demonstration, I'll write an example after work. Hope it helps |