Move to Target slightly below certain pixel? - Yanfly Action Sequence Help

Discussion in 'Javascript/Plugin Support' started by gundriveth, Jun 4, 2018.

  1. gundriveth

    gundriveth Medievaliant Veteran

    Messages:
    91
    Likes Received:
    29
    Location:
    Indonesia
    First Language:
    Bahasa
    Primarily Uses:
    RMMV
    Hello,
    so I want to make the user move to specific point from the enemy.
    Just like below:

    Instead of this (Move to base front):
    Case 1.jpg

    I want the actor to move slightly down to the left from starting point.
    Case 2.jpg

    Is there a way to do this with the action sequence?
    I can't find the way even after scanning through Action Sequence 1, 2, and 3. Hope I am not missing a thing.
    Thank you!
     
    #1
  2. SwiftIllusion

    SwiftIllusion Veteran Veteran

    Messages:
    107
    Likes Received:
    180
    First Language:
    English
    What you're looking for is found in Action Pack Sequence 2 :).
    You'll want to use the offset, for example based on that screenshot-
    "move user: target, front base, 10, offset x -50, offset y +50"
    -may be something you could use.
    Negative x offset moves the character further left.
    Positive y offset moves the character further down.

    Here's an excerpt from the plugin's help with some more context/examples.
    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
     
    Last edited: Jun 4, 2018
    #2
    gundriveth likes this.
  3. gundriveth

    gundriveth Medievaliant Veteran

    Messages:
    91
    Likes Received:
    29
    Location:
    Indonesia
    First Language:
    Bahasa
    Primarily Uses:
    RMMV
    @SwiftIllusion
    wait a minute... there is an offset argument. I really missed it in my (outdated) hardcopy lol. Thanks for pointing it out! :D:D
     
    #3
    SwiftIllusion likes this.

Share This Page