Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom meter problem
#1
Hi everyone !
I need to change meter style but I don't find a solution !
I want to make the meter graphic scrolling up and down. **By default it's right to left**
I try to change the direction in this part of script

Code:
#--------------------------------------------------------------------------
  # * Draw HP
  #     actor : actor
  #     x     : draw spot x-coordinate
  #     y     : draw spot y-coordinate
  #     width : draw spot width
  #--------------------------------------------------------------------------
  alias draw_actor_hp_bar draw_actor_hp
  def draw_actor_hp(actor, x, y, width = 144)
    bar_x = HP_Pos_Adjust[0] + x
    bar_y = HP_Pos_Adjust[1] + y + (Font.default_size * 2 /3)
    @skin = RPG::Cache.windowskin(HP_Meter)
    @width  = @skin.width
    @height = @skin.height / 3
    src_rect = Rect.new(0, 0, @width, @height)
    self.contents.blt(bar_x, bar_y, @skin, src_rect)    
    @line   = (actor.hp == actor.maxhp ? 2 : 1)
    @amount = actor.hp.to_f / actor.maxhp.to_f
    src_rect2 = Rect.new(0, @line * @height, @width * @amount, @height)
    self.contents.blt(bar_x, bar_y, @skin, src_rect2)
    draw_actor_hp_bar(actor, x, y, width)
  end
[Image: a2Nz6vY_460sa.gif]
Reply }


Messages In This Thread
Custom meter problem - by daylights - 08-10-2013, 03:59 PM
RE: Custom meter problem - by Ace - 08-10-2013, 05:00 PM
RE: Custom meter problem - by daylights - 08-10-2013, 08:10 PM
RE: Custom meter problem - by Ace - 08-10-2013, 10:51 PM
RE: Custom meter problem - by daylights - 08-11-2013, 01:59 AM
RE: Custom meter problem - by Ace - 08-11-2013, 04:48 PM
RE: Custom meter problem - by DerVVulfman - 08-11-2013, 05:38 PM
RE: Custom meter problem - by daylights - 08-11-2013, 06:23 PM
RE: Custom meter problem - by DerVVulfman - 08-11-2013, 06:48 PM
RE: Custom meter problem - by daylights - 08-11-2013, 07:04 PM
RE: Custom meter problem - by DerVVulfman - 08-11-2013, 08:04 PM
RE: Custom meter problem - by daylights - 08-11-2013, 08:16 PM
RE: Custom meter problem - by DerVVulfman - 08-12-2013, 03:20 AM
RE: Custom meter problem - by daylights - 08-12-2013, 03:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Resources Consumption Meter Whisper 6 1,548 05-29-2023, 03:51 PM
Last Post: Whisper
   The z-space problem of displaying sprites icogil 28 7,629 03-05-2023, 03:31 AM
Last Post: DerVVulfman
   ACBS - Atoa Custom Battle System and TP System zlsl 2 3,756 10-20-2021, 05:09 AM
Last Post: zlsl
   I want to add an Atoa Custom Battle System command cut-in. zlsl 11 11,905 11-11-2019, 08:55 PM
Last Post: DerVVulfman
   Question about ACBS (Atoa Custom Battle System) aeliath 10 10,944 08-08-2019, 02:50 PM
Last Post: aeliath
   Problems with counteraatack addon of Atoa Custom Battle System Djigit 22 31,553 01-05-2017, 08:05 PM
Last Post: Noctis
   Custom Message by Hodgeelmf, need to make it above picture LunarBerry 6 9,786 05-09-2016, 01:15 AM
Last Post: LunarBerry
   Atoa Custom Battle System: Popup when status change Noctis 6 9,162 02-01-2016, 12:52 AM
Last Post: Noctis
   Atoa Custom Battle System CTB animation while cast Noctis 6 9,539 01-04-2016, 03:05 PM
Last Post: Noctis
   Problem with drain script form the ATOA ACBS Djigit 2 4,956 07-12-2015, 09:17 PM
Last Post: Djigit



Users browsing this thread: