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.

[Resolved] How can I put picture when I select player action in battle?

I try so hard and so many time..to put battler face when I select battler in battle

I try to make window for draw_picture like a "draw_battlerface(@active_battler,x,y) in phase 3 of battle but it said "undefine method for nil class"

Somone can tell me about it, just suggest me, I will try by my self..

Thank you
 
Ah.. Thank you for your advice..

I solve it!!!

put

@actor_face = []
  for i in 0...4
  @actor_face = RPG::Sprite.new
  end
  @actor_face[0].bitmap = RPG::Cache.picture("filename")
  @actor_face[0].visible = false

in def main of scene battle 1

and in scene battle 3 just show actor_face by @actor_index

but this way is rigid not flexible. I think it has other way to do but I'm tired..

anyway Thank you again ^^
 

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