Hey Guys,
after the try to solve in my problem in the topic "Questions that dont deserve a topic"
here a new start.
I want to draw a charakter sprite in a menu (loot menu) and want to use the normal
charakter sheet for it the code im using is
if $game_variables[4] = 1 character_name = "$GiantRat_Pose" character_index = 2 end draw_character(character_name, character_index, 100, 100) def draw_character(character_name, character_index, x, y) return unless character_name bitmap = Cache.character(character_name) sign = character_name[/^[\!\$]./] if sign && sign.include?('$') cw = bitmap.width / 3 ch = bitmap.height / 4 else cw = bitmap.width / 12 ch = bitmap.height / 8 end n = character_index src_rect = Rect.new((n%4*3+1)*cw, (n/4*4)*ch, cw, ch) contents.blt(x - cw / 2, y - ch, bitmap, src_rect) endMy problem now, the i cannot see the sprite. The game doesnot give me an
error, but the sprite is not shown in the menu i am using.
Maybe someone of you can show me my failure.
Thanks Duban