Jump to content


Photo

Draw Something


  • Please log in to reply
3 replies to this topic

#1 Smittbob09

Smittbob09

    GMC Member

  • New Member
  • 80 posts
  • Version:GM7

Posted 04 March 2010 - 04:52 AM

Im trying to draw a healthbar using code over my enemys, I got it all to work but now I have to draw the sprite and now my enemys do not turn like they are supposed to...
Anyone know how to draw the health with out losing the sprite? (Be aware it has to be all local. No extra objects.)

Please Help, Smittbob09.

Edited by Smittbob09, 04 March 2010 - 07:07 AM.

  • 0

#2 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • Retired Staff
  • 9259 posts
  • Version:Unknown

Posted 04 March 2010 - 05:03 AM

Any time you put something in the DRAW event, it overrides sprite drawing. So you just need to draw it yourself is all. I don't know why that would affect your enemy's turning, as long as you're using draw_sprite_ext()...which you are, right?

-IMP :) :P
  • 0

#3 jordan leffl

jordan leffl

    GMC Member

  • GMC Member
  • 188 posts

Posted 04 March 2010 - 06:01 AM

Use this and it should work:

draw_sprite_ext(sprite_index,image_index,x,y,image_xscale,imag
e_yscale,image_angle,image_blend,image_alpha);

Edited by jordan leffl, 04 March 2010 - 06:01 AM.

  • 0

#4 Smittbob09

Smittbob09

    GMC Member

  • New Member
  • 80 posts
  • Version:GM7

Posted 04 March 2010 - 07:06 AM

Thanks very VERY much!!! This worked out GREAT!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users