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.

Adjusting X/Y of battlers in Battle

Hi All,

I'm trying to make it so that the actor's Battlers are actually just a single shot of the sprites for the actors. I have that all set up, the only issue is that the battlers sit a little too far down on the menu, toward where the State is shown. where would I go to alter where the game draws the battlers onto to make it so the sprites raise up a bit?
 
Aren't you just modifying a window? So you'd use the
Code:
draw_actor_graphic(actor, x. y)
wouldn't you? I thought that screen_x and screen_y are for the walking around sprite.
 
You could create a script above Main ande paste this code, just change the values like you want ;) on (return self.index * 20 + 355)


Code:
class Game_Actor < Game_Battler
  
# this script was taken from the Side View BS from X-RPG
# i only changet the numbers
# *yawn* 

  def screen_x
   if self.index != nil
     return self.index * 40 + 180
   else
     return 0
   end
 end

 def screen_y
   return self.index * 20 + 355
 end
 
 def screen_z
   if self.index != nil
     return self.index
   else
     return 0
   end
 end
end
 

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