Jump to content


Photo
- - - - -

Healthbar Example!


  • Please log in to reply
60 replies to this topic

#21 germankid11

germankid11

    GMC Member

  • New Member
  • 3 posts

Posted 31 October 2008 - 05:26 PM

Thanks I give you credit for copying your cursor and nice healthbars too! ::lmao::
  • 0

#22 dragonstorm

dragonstorm

    GMC Member

  • GMC Member
  • 8 posts
  • Version:GM:Studio

Posted 07 December 2008 - 03:47 PM

yes finaly, i have been looking for multipel hp bars and custom one's, very long now.
so thanks, its works great.
i am not so good in code, so the code guide/example is very good.
i can some but not much.
  • 0

#23 Corcor 7

Corcor 7

    GMC Member

  • New Member
  • 163 posts

Posted 09 December 2008 - 10:57 PM

This is exactly what I was looking for!! Thank you very much! I'm sure you just made a lot of TDS-makers very happy! Thanks once again!

Corcor 7
  • 0

#24 Stubbjax

Stubbjax

    RandomGuy General

  • GMC Member
  • 4102 posts
  • Version:GM6

Posted 10 December 2008 - 04:08 AM

IcyWyvern - I'm glad you like it.

Rtyp06 - Just use draw_sprite(spr_player,image_index,x,y)

11clock - This problem is now fixed. I've added a maximum health variable.

germankid11 - Thanks. Credit is always appreciated.

dragonstorm - It's good to know that people are actually learning from this tutorial and not just copying the code. :lol:

Corcor 7 - Although it wasn't intended to be a TDS example, I guess it could potentially be one. Maybe I should add AI?

Happy learning!
  • 0

#25 wirsbobrsiw

wirsbobrsiw

    GMC Member

  • New Member
  • 343 posts

Posted 06 January 2009 - 09:50 PM

I can't make the green health-bar fit on the red... Is it becouse of i use vista? ;)

Edited by wirsbobrsiw, 06 January 2009 - 09:51 PM.

  • 0

#26 Stubbjax

Stubbjax

    RandomGuy General

  • GMC Member
  • 4102 posts
  • Version:GM6

Posted 12 January 2009 - 07:37 AM

I can't make the green health-bar fit on the red... Is it becouse of i use vista? :)

No, that shouldn't be the cause. You are probably doing something wrong. To change the amount of health the enemy has, change the variable 'hitpoints' - located in the CREATE EVENT of the enemy object.
  • 0

#27 Roar_Man

Roar_Man

    GMC Member

  • New Member
  • 8 posts

Posted 13 January 2009 - 02:08 AM

Damn I just love this example, taught me a ton and the flying gore is just lovely.
  • 0

#28 Nragemachine

Nragemachine

    GMC Member

  • New Member
  • 24 posts

Posted 16 January 2009 - 08:14 AM

This will come in very useful, thank you. Now all I need is a tutorial for fighting game healthbars and I'm good to go.
  • 0

#29 superbryceman44

superbryceman44

    GMC Member

  • New Member
  • 2 posts

Posted 04 February 2009 - 05:18 AM

WOW!!!! This example is AWESOME!! Helped me learn a TON of information about everything!
  • 0

#30 norteño_del_sur

norteño_del_sur

    GMC Member

  • New Member
  • 13 posts

Posted 04 February 2009 - 06:03 PM

Wow! Very very nice! I like it a lot! ^_^
  • 0

#31 deric007

deric007

    GMC Member

  • GMC Member
  • 165 posts

Posted 14 February 2009 - 09:29 PM

SUPER GOOD example. Credit will be gived!
  • 0

#32 helmut345

helmut345

    GMC Member

  • New Member
  • 15 posts

Posted 16 February 2009 - 09:19 PM

awesome thanks! though im still concerned about the cursor.
  • 0

#33 walkerqaz

walkerqaz

    Regular Guy

  • GMC Member
  • 1167 posts
  • Version:GM8

Posted 17 February 2009 - 08:54 PM

I could not see the part that draws the health bars
  • 0

#34 JulianS

JulianS

    GMC Member

  • New Member
  • 407 posts

Posted 17 February 2009 - 09:12 PM

Nice, hahah, contains violence? Lol. Weird though...where did you get those sprites? The same were used in a game that I helped my friend make....
  • 0

#35 Hardly

Hardly

    GMC Member

  • New Member
  • 40 posts

Posted 18 February 2009 - 05:56 PM

This is just perfect for a certain kind of frequent novice questions regarding health bars. :blink:
  • 0

#36 luckybucky96

luckybucky96

    GMC Member

  • New Member
  • 239 posts

Posted 20 February 2009 - 07:48 AM

omg the best ty ty so much lm definetly using this
  • 0

#37 BK_239

BK_239

    GMC Member

  • New Member
  • 1 posts

Posted 28 February 2009 - 12:24 PM

Great example! I use this in my old and new game! Thank you very much, and please make more examples lika this! :lol:

Edited by BK_239, 28 February 2009 - 12:28 PM.

  • 0

#38 Tails_brawler

Tails_brawler

    GMC Member

  • New Member
  • 38 posts

Posted 01 March 2009 - 02:21 AM

This is really good! :P 10/10 Do you mind if I use the health bar part for one of my games? I will credit you. :D
  • 0

#39 allewille

allewille

    GMC Member

  • New Member
  • 30 posts

Posted 17 March 2009 - 11:09 AM

This is so damn amazing :D ive looked for this for a so long time now, then i go into the "tutorias and examples" and its in front of my eyes! so good :D any1 know how to move diagonaly in a platform game (like when you go on a hill) ???? i really need to know :D
  • 0

#40 skull13

skull13

    GMC Member

  • New Member
  • 241 posts

Posted 17 March 2009 - 12:03 PM

I've actually done it myself for Star Clash. It isn't all that hard.
Nevertheless, its a good example that you have here.

*HINT* You can use draw_sprite_ext to use it for sprites that move. See the manual and wiki for arguments for it.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users