Draw Character Sprite [SOLVED

Hello!
I want to know how to display character sprite in the window. I want to display sprites based on file names. for example I want to display the "Giant" sprite. and "Giant" already exists on Graphic / Characters. can anyone help me solve this case?

I want to make a window like this:
index.php
If its for Ace/RGSS3

One way to do it is to make your own sprite object, then make a new bitmap object in it and draw the graphic on that new bitmap object.

Code:
spr=Sprite.new
spr.bitmap = Bitmap.new(544,416)
spr.bitmap.blt(parameters here)

Look at the Bitmap entry on the help file for details on the parameters

You can also opt to make a sprite object, create a bitmap object for the graphic then use that as the bitmap of the sprite object

Code:
spr = Sprite.new
spr.bitmap = Cache.whateverfolderitis(filename)

Look at the Cache entry of the help file for details on how to use the Cache, or read the Cache script on the script editor

Create a window object from Window_Base and draw the graphics on its @contents bitmap object.

Code:
window = Window_Base.new(params)
window.contents.blt(params)
If its for Ace/RGSS3

One way to do it is to make your own sprite object, then make a new bitmap object in it and draw the graphic on that new bitmap object.

Code:
spr=Sprite.new
spr.bitmap = Bitmap.new(544,416)
spr.bitmap.blt(parameters here)

Look at the Bitmap entry on the help file for details on the parameters

You can also opt to make a sprite object, create a bitmap object for the graphic then use that as the bitmap of the sprite object

Code:
spr = Sprite.new
spr.bitmap = Cache.whateverfolderitis(filename)

Look at the Cache entry of the help file for details on how to use the Cache, or read the Cache script on the script editor

Create a window object from Window_Base and draw the graphics on its @contents bitmap object.

Code:
window = Window_Base.new(params)
window.contents.blt(params)
may I ask 1 basic question? maybe this is out of topic, but this is related to the script that I am making now.

the scripts that I created need a sprite window and draw gold, exp, and drop items from enemy.
I don't know how to draw gold, exp and drop items from enemy.
I will draw gold, exp and drop the enemy with the specified ID (Only 1 enemy)

I have understood the way above! Thank you for your help!

PS: I want to display the drop items from the enemy, but I use YEA-Extra Drop on my project. is it possible to draw the drop?
You can check how the Window_Gold draws the gold value, how the Window_Status draws the character exp, levels etc.

As for the drops, that should be doable but complexity depends if Yanfly's extra drop script provided an easy way to get the extra drops.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/draw-character-sprite-solved.110599/