Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
NightmareFelix

The zombie uses Fear on... your command window?

Question

So, through my own scripting I have completely changed the layout of RMXP's default battle interface. Since my game is based around only having one character, I took the liberty of repositioning the battler.

 

Unfortunately, when I use items, get attacked, or anything else involving animations on my character, they still appear on the far left.

 

So... how do I move that stuff? I've been putting off fixing this for nine months because as much as I've dug through the scripts I just can't find it.

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Animations appear at the same position as the sprite they're supposed to be played on. If your animations don't appear on the battler, this must mean that... somehow the battler's sprite must be elsewhere. How did you manage to change the battler's position?

Share this post


Link to post
Share on other sites
  • 0

Heh... that's right. You've helped me remember.

 

I made the battler graphic long, and blank on one side, so it would LOOK like it's slightly to the right of where it is originally.

 

So... I guess that means now I have to figure out how to ACTUALLY move it. I assume I tried doing it the same way you reposition a window, but it didn't work.

 

Sorry if my memory's foggy, I did this a long time ago.

Share this post


Link to post
Share on other sites
  • 0

Still can't figure this out... anyone got any advice on moving the fighter graphic? I can post pics of what I'm doing if you'd like.

Share this post


Link to post
Share on other sites
  • 0

The battler's graphic is a Sprite_Battler object. From what we can see in the following code, it gets its position from the associated battler's screen_x, screen_y and screen_z methods:

   self.x = @battler.screen_x
   self.y = @battler.screen_y
   self.z = @battler.screen_z

Since actors and enemies are placed in a different way, those methods are defined only in the Game_Actor and Game_Enemy classes. Soooo at the very end of the Game_Actor entry, you can find them. Just override them to your liking.

Share this post


Link to post
Share on other sites
  • 0

...oooooh... Thanks. So the animations should appear directly over it when I make that move? Awesome. I'll give it a plug and chug and see how it works out for my interface. wink.png

 

WORKED! Thanks. :)

Edited by NightmareFelix

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...