Is it possible to get an enemy's position to use in an action sequence?

● ARCHIVED · READ-ONLY
Started by zarroc407 3 posts View original ↗
  1. So I'm working on a skill where the user shoots a projectile at the enemy and I want to have them move to an x position close to the line of actors but on the same y level as the target is this possible?
  2. Assuming you are using Yanfly's action sequences, you can use this:

    You may be curious about the optional (offset) argument there for some of
    the entries. You can insert any of the below arguments in place of (offset):

    offset x +100
    offset x -200
    offset y +300
    offset y -400

    This will allow you to offset the distance to the destination by a flat
    amount. Positive numbers would indicate forward while negative numbers will
    indicate backward.

    auto offset x +500
    auto offset x -600

    However, if you use either of the above, depending on if the user is an
    actor or enemy and depending on the target (if there is one) is an actor or
    an enemy, it will move them into position accordingly.
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Usage Example: move user: home, 20
    move target: forward, 48, 12
    move enemy 1: point, 400, 300
    move enemy 2: point, 500, 250, offset x -50, offset y -50
    move actor 3: target, front base, 20
    move user: target, front base, 20, auto offset x -100
  3. @Jules98 That worked perfectly thank you :)