Enemy Re-position

This script allows you to move your enemy’s sprites around in battle using
script calls. It simply slides the image across the screen.

Download

Script: download here

Installation

Place this script below Materials and above Main

Usage

Make one of the following script calls during battle

position_enemy(enemy_index, x, y)
move_enemy(enemy_index, x, y)

The enemy_index is the index of the enemy, where 1 is the first enemy,
2 is the second enemy, and so on.

x, y is the position they will move to.

The first call is an absolute position relative to the top-left corner of
the screen.

The second call is relative to the sprite’s current position. So if you say
x = 100, then it will shift it to the right 100 pixels.

You may also like...

24 Responses

  1. vpn 2024 says:

    Very good info. Lucky me I ran across your website by chance (stumbleupon).
    I have book-marked it for later!

    Here is my blog … vpn 2024

  2. I know this if off topic but I’m looking into starting my own weblog and was curious what
    all is required to get set up? I’m assuming having a blog
    like yours would cost a pretty penny? I’m not very internet savvy so I’m not 100% positive.
    Any recommendations or advice would be greatly appreciated.
    Kudos

    Also visit my website vpn special coupon code 2024

  3. Hmm it looks like your website ate my first comment (it was extremely long) so I
    guess I’ll just sum it up what I had written and say,
    I’m thoroughly enjoying your blog. I too am an aspiring blog blogger but I’m still
    new to everything. Do you have any points for first-time blog
    writers? I’d really appreciate it.

  4. vpn special says:

    of course like your web site but you need to test the spelling on several of your
    posts. Several of them are rife with spelling problems and I find it very
    troublesome to tell the reality on the other hand I will certainly come again again.

    Feel free to surf to my blog post vpn special

  5. mircette disponible en ligne avec livraison sécurisée en France
    Commande de desogestrel en pharmacie en ligne
    Acheter de la mircette en ligne : conseils pour économiser de l’argent
    où acheter desogestrel desogestrel en vente en ligne
    desogestrel : informations essentielles pour les utilisateurs
    acheter du desogestrel en Espagne desogestrel en ligne :
    conseils pour choisir la bonne dose
    mircette de qualité garantie pour une efficacité optimale
    Pharmacie en ligne certifiée pour acheter de la desogestrel au Québec pharmacie vendant desogestrel France
    Obtenez votre mircette en ligne avec livraison express
    pharmacie en ligne Espagne desogestrel

  6. motrin kopen zonder doktersvoorschrift
    Hoe ibuprofen zonder recept te verkrijgen motrin kopen zonder voorschrift: eenvoudig en snel
    motrin kopen veilig online motrin online kopen in België
    motrin zonder recept in Leuven, België motrin bestellen zonder voorschrift in Nederland
    motrin prijs online motrin online bestellen in Alkmaar – geen gedoe meer met apotheken.
    Ontdek de prijzen van ibuprofen in Brussel, België Veilige online
    apotheek voor motrin in Nederland
    Doe een aankoop van motrin in Nederland
    Bestel ibuprofen zonder voorschrift in België
    Veilige website voor motrin zonder recept ibuprofen zonder voorschrift verkrijgbaar in Luxemburg
    ibuprofen kopen in België via internet online verkoop van motrin in Frankrijk
    bestel motrin in Brussel
    aankoop van motrin online in Nederland
    waar ibuprofen vinden in de apotheek
    Online aankoop van motrin met discrete verzending motrin bestellen:
    eenvoudig en snel zonder recept.
    aankoop van motrin in Spanje Geen recept nodig om ibuprofen te kopen in Nederland
    motrin tegen concurrerende prijs in België aankoop van motrin in Europa
    prijs van ibuprofen in Frankrijk
    prijs van ibuprofen in Marseille waar motrin te vinden in Zwitserland
    motrin online bestellen met veilige betaling
    Beste plek om motrin zonder recept te vinden motrin zonder recept
    online te bestellen
    motrin aankoop in Nederland
    motrin zonder recept verkrijgbaar online
    motrin zonder voorschrift te koop

  7. Hi, constantly i used to check blog posts here in the early hours in the daylight,
    for the reason that i like to gain knowledge
    of more and more.

    Also visit my website vpn coupon code 2024

  8. Your mode of telling everything in this piece of writing is in fact pleasant,
    every one can easily be aware of it, Thanks a lot.

    Feel free to surf to my web blog :: vpn special code

  9. Joey says:

    Do you have a way to make this compatible with Yami’s Engine Symphony? The enemies are repositioned but as soon as they do anything that makes them move, they are brought back to their original position.

    • Hime says:

      There’s not much I can do. You’d basically need to change the way that battle system is done since it assumes all animations will return the enemy to its “original position”

  10. Juan says:

    Anyone know of a script that WILL move the position of the enemy, and not just the sprite?

  11. bloodyliao says:

    Hi, Hime~ I wanna give a skill the ability to change positions of the enemy. However, how can I get the enemy_index of the certain enemy the skill applies to?

    • Hime says:

      If you have a reference to the target (eg: in a damage formula), b.index will return the target’s index in the unit.

  12. NB says:

    Clearly, that's why I originally asked if I had used the wrong syntax or put the call in the wrong place

    • Hime says:

      Well it's in the correct place and the syntax is correct. It works for me when I copy and paste it into a troop event. Your event probably isn't even running.

  13. NB says:

    removed Yami's and the enemies still aren't being repositioned

  14. NB says:

    the only other script im using for battles is Yami's Battle Symphony

  15. NB says:

    Hi I'm having some trouble with your script, most likely I'm just not experienced enough with them, but I can't get the enemy sprite to change their positions. I went into the troop tab and under script put

    position_enemy(1, 50, 224)

    If this is the improper syntax or place for it please let me know

  16. SirCumferance says:

    I am wondering just how easy it would be to make it so it randomizes the enemy position. I have only experience in slightly tweaking existing scripts and think that something like

    enemy.x = -randmo_x +(random(random_x*2)
    Clearly the syntax is incorrect but you get what I mean, is that something that is even possible? I am using Yanfly Area Effect, so sometimes I want the troops to be clustered, other times, not, lol.

Leave a Reply

Your email address will not be published. Required fields are marked *