Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Using images for the status screen.

I was wondering, when checking the status for a character. Is it possible to make it show a different picture other than the sprite for visual display of the character? If you've played Tales of Symphonia or something like that, reading info on characters showed a large anime picture of them. I sort of want to do that with my game. I want the Status screen to show a large anime version of the sprites depicted as they are in concept.

How would I go about doing this?
 
Hmm.You want it to look like this?
Statuswithpicture.png


Yeah,I know it looks like ...ahem.
If so,make a new script and add this:
Code:
class Window_Base

  

def draw_actor_picture (actor, x, y)

bitmap = Sprite.new

bitmap = RPG::Cache.picture(actor.name + "_pic")

wdt = bitmap.width

hgt = bitmap.height

self.contents.blt(x , y , bitmap, Rect.new(0 ,0 , wdt, hgt))

end 

 

end

After that,go to Window_Status(if you use the default status) or your status screen and call the method
Code:
draw_actor_picture(@actor, x, y)
Where x and y are the X and Y coordinates,respectively

Of course,you still need the pics.Put them in the pictures folder,and name them exactly like the character and add '_pic' at the end(without the quotes).For example," Aluxes_pic ".

Cheers.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top