RPG Maker Forums

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top