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.

Help for a menu i'm working on

Hello guys, working on my first cms here, it's going well but i want to have the sprite facing left instead of facing front, how would i go about making this happen?
 

arev

Sponsor

If you're talking about Window_MenuStatus, then it's done with "draw_actor_graphic" method. You'll find it's definition in Window_Base. Find this line: src_rect = Rect.new(0, 0, cw, ch)
The second '0' is responsible for vertical shifting through the bitmap. If you're using RTP sprites a value of 48 should do the job.
 

Mac

Member

Its as arevulopapo said.

Code:
src_rect = Rect.new(0, 0, cw, ch)

Just think of it like this.

Code:
search_rectangle = Rectangle.new(x axis, y axis, character width, character height)
 

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