Ulquiorra Colaborador
Mensagens : 13 Reputação : 3 Data de inscrição : 09/09/2011 Idade : 26
| Assunto: Hp e SP embaixo do Personagem Sex Set 09, 2011 10:23 pm | |
| Vagando Pelo menu pc (oo pc velho )Achei esse Script talves seja util Descrição: Colocar Hp e Sp embaixo do personagem Script- Spoiler:
#============================================================================== # Actor Hp # By Marlos Gama # Version: 1.0 #==============================================================================
class ActorHPBars < Window_Base def initialize super($game_player.screen_x-60,$game_player.screen_y-78,120,120) self.contents = Bitmap.new(width - 32, height - 32) self.opacity = 0 actor = 0 refresh end def refresh self.contents.clear actor = $game_party.actors[0] self.contents_opacity = 255 self.x = $game_player.screen_x - 60 self.y = $game_player.screen_y - 78 fd = RPG::Cache.picture("actorbase") bw = fd.width bh = fd.height fd_rect = Rect.new(0,0,bw,bh) self.contents.blt(29,66,fd,fd_rect) barhp = RPG::Cache.picture("actorhp") bhw = barhp.width * actor.hp / actor.maxhp bhh = barhp.height barhp_rect = Rect.new(0,0,bhw,bhh) self.contents.blt(29,66,barhp,barhp_rect) fd2 = RPG::Cache.picture("actorbase") bw2 = fd.width bh2 = fd.height fd_rect2 = Rect.new(0,0,bw2,bh2) #MP self.contents.blt(29,69,fd,fd_rect) barmp = RPG::Cache.picture("actormp") bhw = barmp.width * actor.sp / actor.maxsp bhh = barmp.height barmp_rect = Rect.new(0,0,bhw,bhh) self.contents.blt(29,69,barmp,barmp_rect) fd2 = RPG::Cache.picture("actorbase") bw2 = fd.width bh2 = fd.height fd_rect2 = Rect.new(0,0,bw2,bh2) end end
class Scene_Map alias requiem_main main def main @actorhp = ActorHPBars.new requiem_main @actorhp.dispose if @d != true end alias requiem_update update def update requiem_update @actorhp.x = $game_player.screen_x-60 @actorhp.y = $game_player.screen_y-78 @actorhp.refresh @actorhp_update end end Imagens Necessárias: Perguntas Frequentes: 1. Onde coloco as imagems? Resposta: Na pasta pictures Créditos: Marlos Gama (Por Criar o Script) By:Ulquiorra | |
|