| Assunto: Nome em cima do Char Sex Set 07, 2012 1:00 pm | |
| Bom povo, não sei se alguem ainda meche com rmvx mas ai vai um script simples que fiz hoje (demorei 2 minutos então é MUUITO SIMPLES MESMO xD) Introdução: O script mostra o nome em cima do char se for usar dê os devidos créditos _____ Instruções cole acima do main na linha 23 você modifica para a posição do nome de cima para baixo (Posição Y) e na linha 22 pros lados (Posição X) _____ O script: - Código:
-
#-#-#-#-#-#-#-#-#-#-#-#-#-#_#_#-#-#-#_#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# # Nome Em cima do char # #By: Samuka_Maker # # Data: 07/09/2012 # #-#-#-#-#-#-#-#-#-#-#-#-#-#_#_#-#-#-#_#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# module Player_Name Font_Name = "Segoe UI" Font_Size = 14 Font_Color = Color.new(255,255,255) end
class Player_Name_Text < Sprite_Base def initialize super() self.bitmap = Bitmap.new(100, 24) refresh end
def refresh self.bitmap.clear self.x = $game_player.screen_x - 50 self.y = $game_player.screen_y - 65 self.bitmap.font.size = Player_Name::Font_Size self.bitmap.font.name = Player_Name::Font_Name self.bitmap.font.color = Player_Name::Font_Color actor = $game_party.members[0] self.bitmap.draw_text(self.bitmap.rect, "#{actor.name}", 1) else self.bitmap.draw_text(self.bitmap.rect, actor.name, 1) end end
class Sprite_Character < Sprite_Base alias qicon_alias_initialize initialize def initialize(*args) @q_icon = nil @npc_icon = nil @npc_name = nil @font_color = nil qicon_alias_initialize(*args) end alias init initialize def initialize(view, char) init(view, char) if @character.is_a?(Game_Player) @player_name = Player_Name_Text.new end end alias qicon_alias_update update def update qicon_alias_update if @character.is_a?(Game_Player) and @player_name != nil @player_name.refresh end end end |
|
| Assunto: Re: Nome em cima do Char Sex Set 07, 2012 3:55 pm | |
| Que legal, bem simples ^^
Valeu por disponibilizar, até eu entendi o código ^^
+ Fama pra vc |
|
| Assunto: Re: Nome em cima do Char Sex Set 07, 2012 5:05 pm | |
| sim bem simples
nada, kk pois é é bem facil o script kkk
vlw *-* |
|
Conteúdo patrocinado
| Assunto: Re: Nome em cima do Char | |
| |
|