Checking position of Actors in Battle

Discussion in 'RPG Maker MV' started by LackeDragon, Feb 28, 2018.

  1. LackeDragon

    LackeDragon Veteran Veteran

    Messages:
    30
    Likes Received:
    2
    First Language:
    French
    Primarily Uses:
    RMMV
    Hello!

    I'm actually working on a Battle system that make the actors stay in place where they finished the attack.
    My problem is, if I'm really unlucky with the movements of those actors, they can end up off screen after a while.
    In the uploaded example, they would continue their way to the bottom of the screen, which I don't want!

    So, I was wondering if there a way to check of the current active actor/battler pposition in the screen.
    For example I found "$gameTroop.members()[EnemyIndex]._screenY > 500" for the enemy

    It works but it's not really that usefull as I need to check if for each corner of the screen, and every possible present enemy on screen.
    I also didn't found the one for the player's party member.

    So, in brief :
    Is there a script call to say "Check the active battler position on screen" or something similar?

    Thanks!
     

    Attached Files:

    #1
  2. Neo Soul Gamer

    Neo Soul Gamer Veteran Veteran

    Messages:
    612
    Likes Received:
    329
    Location:
    Nova Scotia, Canada
    First Language:
    English
    Primarily Uses:
    N/A
    Are you using Yanfly's Action Sequencing by any chance?
     
    #2
  3. LackeDragon

    LackeDragon Veteran Veteran

    Messages:
    30
    Likes Received:
    2
    First Language:
    French
    Primarily Uses:
    RMMV
    I don't. I use VE Battle Motions right now.
    Why that?
     
    #3
  4. Neo Soul Gamer

    Neo Soul Gamer Veteran Veteran

    Messages:
    612
    Likes Received:
    329
    Location:
    Nova Scotia, Canada
    First Language:
    English
    Primarily Uses:
    N/A
    The method I use to get the positioning of sprites is provided by Yanfly's action sequencing. Not sure how else to get it. Sorry about that. :(
     
    #4
  5. LackeDragon

    LackeDragon Veteran Veteran

    Messages:
    30
    Likes Received:
    2
    First Language:
    French
    Primarily Uses:
    RMMV
    Hum maybe still explain?
    It may gives me some hints on how to proceed if VE Battle motions has something similar.
    I would have loved using Yanfly one, but unfortunately, the fact that it is linked to the battle core engine create a lot of problem on my project :p
    It's not really compatible with a lot of things.
     
    #5

Share This Page