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.

draw character in other pose

I'm temped to explain you how to rotate a sprite really... but I think what you want to do is draw a character facing left really. If that's what you want, giving us the scope you'Re working in would be nice, as apparently, you're not drawing a sprite, but set a character graphic to an instance of Game_Event or Game_Actor - I figure the latter. In that case, assuming you want to use the characterset used for the character and not a seperate graphic, you need to split a bitmap by using ox and oy values to split it up. You should find examples in the default scripts on how to do this... I can't explain it because I use it way too rarely.
 
I'm making my own shop and i want to show the actors like in old FF's ones. In my case only will apear the character graphic turned to the left if it can equip the weapon, and then, the stats of that weapon.

Rotate won't work, because i need to draw a pose of the charaset, no? Anyway, i will look for how it does the default script.

I will try to split the bitmap, then.
 
You can either use a sprite or a class similar to Game_Character or Game_Player. If you don't need the character sprite to move, the former is you best choice or else the latter would get the job done.

In the first case you only need to draw a 1/16 part of character image (for XP sprites). You can do it with self.src_rect.set(x, y, w, h) where self is the sprite class (if you use it in a class script) or a variable that's equal to some Sprite class ( @sprite = Sprite.new; @sprite.src_rect.set(x, y, w, h) ).
 

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