Actor Battle postion

Discussion in 'Javascript/Plugin Support' started by csevans84, Jul 14, 2019.

  1. csevans84

    csevans84 Veteran Veteran

    Messages:
    66
    Likes Received:
    15
    First Language:
    english
    I am creating something close to the ff1 battle system and I have a lot of the elements in place but I can not get the actors where I need them. I am using Yanfly's ATB and battle core. I have tried note tags but I can only get the actor to move a little and not to the far right where I want them. Screen Shot 2019-07-13 at 5.43.06 PM.png
     
    #1
  2. bgillisp

    bgillisp Global Moderators Global Mod

    Messages:
    12,057
    Likes Received:
    12,227
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMVXA

    I've moved this thread to Plug-In Support. Please be sure to post your threads in the correct forum next time. Thank you.

     
    #2
  3. caethyril

    caethyril ^_^ Veteran

    Messages:
    1,161
    Likes Received:
    716
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    Battle Engine Core has plugin parameters called "Home Position X" and "Home Position Y", found just under "---Sideview---" in the Plugin Manager. These parameters determine the actor positions.

    Default "Home Position X":
    Code:
    screenWidth - 16 - (maxSize + 2) * 32 + index * 32
    To shift the entire party over to the right by 50 px, just add 50:
    Code:
    screenWidth + 34 - (maxSize + 2) * 32 + index * 32
    To reduce the spacing between successive actors, just reduce the number multiplying the index, e.g.
    Code:
    screenWidth - 16 - (maxSize + 2) * 32 + index * 12
    Etc~

    You may also want to adjust the "Step Distance" & "Flinch Distance" plugin parameters, found a few entries below "Home Position Y".
     
    #3
  4. csevans84

    csevans84 Veteran Veteran

    Messages:
    66
    Likes Received:
    15
    First Language:
    english
    They still aren't moving :(
     
    #4
  5. caethyril

    caethyril ^_^ Veteran

    Messages:
    1,161
    Likes Received:
    716
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    Did you save your project after making changes in the Plugin Manager? If not, the parameter changes will not be reflected during play. :)

    Otherwise, it may help if you could screenshot or list all the plugins you're using, in the order they appear in the Plugin Manager.
     
    #5
  6. csevans84

    csevans84 Veteran Veteran

    Messages:
    66
    Likes Received:
    15
    First Language:
    english
    I did save it but no change.
     

    Attached Files:

    #6
  7. caethyril

    caethyril ^_^ Veteran

    Messages:
    1,161
    Likes Received:
    716
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    The ATB plugin is an extension for Battle Engine Core: ATB should load after (i.e. be placed below) Battle Engine Core. You can click + drag to rearrange the list~ :kaophew:

    I believe Core Engine & Community_Basic have a lot of overlap, maybe consider turning off or removing Community_Basic? :kaoswt:

    You could try temporarily turning off the ATB plugin, too (right-click > Turn OFF); save & test, see if that helps with the positioning issue.
     
    #7
  8. csevans84

    csevans84 Veteran Veteran

    Messages:
    66
    Likes Received:
    15
    First Language:
    english
    Still nothing
     

    Attached Files:

    #8
  9. csevans84

    csevans84 Veteran Veteran

    Messages:
    66
    Likes Received:
    15
    First Language:
    english
    Okay got them to move now how do I get them all on the same row? The one with green hair is perfect.
     

    Attached Files:

    #9
  10. csevans84

    csevans84 Veteran Veteran

    Messages:
    66
    Likes Received:
    15
    First Language:
    english
    Okay everything is solved but one thing. I how do I space out actors on the Y axis. I don't want them to overlap.
     

    Attached Files:

    #10
  11. caethyril

    caethyril ^_^ Veteran

    Messages:
    1,161
    Likes Received:
    716
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    Check the "Home Position Y" parameter; default value:
    Code:
    screenHeight - statusHeight - maxSize * 48 + (index+1) * 48 - 32
    To increase the spacing, just increase the number multiplying the index, e.g.
    Code:
    screenHeight - statusHeight - maxSize * 48 + (index+1) * 64 - 32
     
    #11
  12. csevans84

    csevans84 Veteran Veteran

    Messages:
    66
    Likes Received:
    15
    First Language:
    english
    Thank you so much
     

    Attached Files:

    #12
  13. csevans84

    csevans84 Veteran Veteran

    Messages:
    66
    Likes Received:
    15
    First Language:
    english
    Hmm One last question before this closes. Can I get rid of the Gauges and just use Text?
     
    #13
  14. caethyril

    caethyril ^_^ Veteran

    Messages:
    1,161
    Likes Received:
    716
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    I believe that'll need another plugin, since Yanfly's Battle Engine Core doesn't offer that feature. Fortunately, it's quite a simple thing to code!

    To disable gauges throughout the game:
    Code:
    Window_Base.prototype.drawGauge = function() {};
    To disable gauges only in the battle status window:
    Code:
    Window_BattleStatus.prototype.drawGauge = function() {};
    You can pick one of the above options, save it as a .js file (Save As > File Type: All files, Filename: whateverYouLike.js) and import it like a plugin. Basically these options just replace the relevant gauge-drawing code with nothing while the plugin is active~ :kaopride:
     
    #14
  15. csevans84

    csevans84 Veteran Veteran

    Messages:
    66
    Likes Received:
    15
    First Language:
    english
    That worked! But create a new issue lol. Now everything is really spaced out.
     

    Attached Files:

    #15
  16. caethyril

    caethyril ^_^ Veteran

    Messages:
    1,161
    Likes Received:
    716
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    #16

Share This Page