Battler Positions in 640x480

Deeo

Warper
Member
Joined
Mar 16, 2014
Messages
1
Reaction score
0
First Language
English
Primarily Uses
So i changed the resolution in vx ace to its highest 640x480 but now once i remade some new backgrounds for the battle screen to the appropriate size i can't move the battles in the troops tab as far down. So now it looks like there more in the back ground screen and not on the ground part. Makes them look like there flying if i have to place more then one enemy.

Is there a way to increase that window size? Or am I forced to find a way to make a script to try and poisition each troop set manually?

Need help with this.
 

Ant1989

Veteran
Veteran
Joined
Nov 30, 2013
Messages
36
Reaction score
1
First Language
Portuguese
Primarily Uses
I tryed to use your script, thank, by the way, but it worked in parts.


I am making a fan remake of a what was a light novel, and some of the sprites and battles, have no legs, so they must be placed as low as possible, to give the effect that is the camera cutting them. Your script did corrected the sprites postions, but it didn't put them at the lowest part possible. 


SO, I got your script, and changed this part 


 new method: adjust enemy battler coords
  #--------------------------------------------------------------------------
  def adjust_coords
    adjust_x = Graphics.width / 544.0
    adjust_y = Graphics.height / 390.0
    @enemies.each do |enemy|
      enemy.screen_x *= adjust_x
      enemy.screen_y *= adjust_y


and it did corrected the rest. My question is, is there a problem doing that? I am noob in scripting. thanks
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You're in the right place there.  It's just a matter of adjusting those numbers until you get the result you're after.  If you know your width and height (640x480), you can just do the calculation manually and put the result in there instead of having it do the calculation each time.  Granted, it's only going to do it once for each enemy, each time you enter a battle, so it's practically no processing required.  But it might make it easier for you to tweak the numbers.
 

Ant1989

Veteran
Veteran
Joined
Nov 30, 2013
Messages
36
Reaction score
1
First Language
Portuguese
Primarily Uses
Well. With this settings, with Y in 390 instead of 416, it already allow me to drag the enemies to the botton of the screen in the troops menu. I didn't undestand what calculation you are saying, I am noob in scripting as I said, and I just presumed that these numbers were controling the enemy position by what is written. What I did was just try and error until I managed to make the enemies on the botton of the screen using the troops menu. Since I already know the correction, I just need to position the enemies of each enconter on the troops menu. My only doubt was if what I did could cause problems elsewhere. Since you said I was in the right direction, I will presume I did right then. 


Thanks for the help.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This is the calculation it's doing:


Graphics.height / 390.0


You know your window height is 480, so you can just do the calculation 480/390.0 which is 1.23 and put that onto the line instead of the calculation itself:


adjust_y =  1.23


This just means you're telling it what the value is instead of having it do the calculation each time it places a battler.  But as I said, this bit of code will be executed so infrequently that it won't make a bit of difference.


What you've done won't cause any problems elsewhere :)
 

Ant1989

Veteran
Veteran
Joined
Nov 30, 2013
Messages
36
Reaction score
1
First Language
Portuguese
Primarily Uses
Oh... so that / was a division? I thought it was separating commands or something. Now I understand what I did. Thanks.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
haha - yep, / is division.  Comments in Ace scripts have a # in front.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top