Hello! Thanks for your time reading this, i'm currently making a battle system where you have first person animations, like Hylics or Felvidek, so far it's going good, i've mostly done attack animations for now, but, i started to make animations for healing skills and stuff like that, and i've encountered a problem, i realized that animations are "anchored" to the scope settings of the skill they're used in, so if i, for example were to make an healing aniamtions, where you see hands grabbing a potion or something like that, since the scope of the skill is the player, instead of playing the animation regurarly it plays it centering the face of the actor, i briefly solved this by putting the scope to the enemy without doing any damage and calling a common event that gives the desired heal, but it's a bit ugly, since it's going to ask you wich enemy to target even tough you're just healing, is there a workaound for this? i essentialy just need the animation to not be anchored to a scope, so that i can just put it wherever i want on the screen
Battle animations not anchored to player or enemy
RPG Maker MV SupportCould it be that what you really want is to set the "Position" setting of the specific animation to "Screen"?
well putting it to screen de-anchors it from the enemy, so that if there's two enemies it doesent position it according to where they enemy is, but if the scope is on the user it will still put it near the face, even mirrors it for some reason
Also forgot to mentio, i'm using mogs battlehud for the face, tough that doesen't really change much, without any plugin the animation's offset is outside the screen
Hmm. It seems like you haven't clearly explained what you want.
Can you pick one skill/item (say, the "potion" item) and explain exactly what you want to see when it's used?
Can you pick one skill/item (say, the "potion" item) and explain exactly what you want to see when it's used?
Yeah sorry about that, and thanks for the replies, let's say we have this potion item, at the bottom borders of the screen, when the skill is used, two hands popup and you see the little animation of opening up the bottle and drinking it, in first person, with the screen option set on the animation tab, if the scope of the skill is enemy, the animation plays exactly like i mentioned it, instead, if the scope of the skill is the user, the animation is placed differently on the screen, (to be more clear the hands dont popup from the bottom but instead from the center of the screen or other parts) i believe because since the skill is supposed to have effects on the user, the engine looks for where the face of the user is placed in the battlehud and places the animation there, what i'd want is for the animation to not be affected by this, so whatever the scope of the skill is, it always plays where i put it on the screen in the animation tab
A picture paints a thousand words; it would be helpful if you can provide screenshots and/or a video/gif of how it's working now to help us better understand what it is you want to accomplish.
Secondly, you can always adjust the location of the animation on the target in the animation tab in the database.
Secondly, you can always adjust the location of the animation on the target in the animation tab in the database.
Hello, i realized this is more of a feature then an issue or bug, beucase i'm not using it as intended by the engine, but anyway, here it is: take the fire animation for example, putting the scope of the skill on the enemy will have the animation and its effect happen on the enemy, just like this:
instead, putting the scope of the skill on the user will have the skill's effect, and animation be played on the face of the user:
if isntead i was to put the scope of the skill on the user, (as should be for an healing skill) this is would be the result:
There's a thread here: https://forums.rpgmakerweb.com/threads/placing-animations-in-specific-locations-mid-battle.64314/ with a similar issue, and some musings about how to fix it, but it's a little beyond me. You could just hack it by giving all your animations that target the player a set offset in the animations tab so that they end up in the right place.
Hmmm, I checked it and it seems there's a problem with MOG Battle Hud. Like here the this._battler never seemed to return true. I commented out that conditional and the position 3 (screen) x,y change actually happens. At least I think that was the problem. But yeah, I just quickly tested it with those lines commented out. Don't know if it can cause some problems for you.
var _mog_bhud_sprAnim_updatePosition = Sprite_Animation.prototype.updatePosition;Sprite_Animation.prototype.updatePosition = function() { _mog_bhud_sprAnim_updatePosition.call(this)// if (this._battler) { if (this._animation.position === 3 && this.x === 0 && this.y === 0) { this.x = Graphics.boxWidth / 2; this.y = Graphics.boxHeight / 2; };// };};So you cut out this part in the code, and even if the scope is set to user it uses the screen position?
No I commented out two lines with the // (so that it gets rid of the first conditional).
Thanks to everyone who replied 🙂 i think i found a workaround, it doesn't exactly fix the "issue" but it works visually, while the trick of adjusting the animations in the database based on where the game is going to put them later on works, it is pretty challenging when you have these big ol' hands sprites to put around the screen, and requires understanding where to put them even outside the screen (so you just kind of guess until you find a good enough solution)
The workaround that i've found uses Yanfly's Battle Engine Core and the first Action Sequence Pack, while it may be a bit challenging at first, it very worth getting into (as an example, when i turned it on and tried a fight with default settings animations were playing at random and overlapping, so it needs a bit of playing with it)
This is how it works: Make a common event that plays the battle animation you want, and set the target to be the whole troop, remember the id of this one, Go to the skill you want to use on the user that you don't want the offset to be changed (This actually just works for any skill you'd like to keep the position of the database of) and set the animatin to none, put all the effects you want it to give the user and the scope on the user, then in the note tag put this
<Whole Action>
perform action
motion wait: user
common event: ID (Replace with the id of that common event)
action effect
death break
</Whole Action>
I won't explain in detail what all of the commands are, but essentialy what happens is that when the player uses the skill, the skill has no animation, so even if the scope is the user, it won't play the animation incorrectly, instead, the note tega will call the common event, wich will always play the animation on the whole troop,
The workaround that i've found uses Yanfly's Battle Engine Core and the first Action Sequence Pack, while it may be a bit challenging at first, it very worth getting into (as an example, when i turned it on and tried a fight with default settings animations were playing at random and overlapping, so it needs a bit of playing with it)
This is how it works: Make a common event that plays the battle animation you want, and set the target to be the whole troop, remember the id of this one, Go to the skill you want to use on the user that you don't want the offset to be changed (This actually just works for any skill you'd like to keep the position of the database of) and set the animatin to none, put all the effects you want it to give the user and the scope on the user, then in the note tag put this
<Whole Action>
perform action
motion wait: user
common event: ID (Replace with the id of that common event)
action effect
death break
</Whole Action>
I won't explain in detail what all of the commands are, but essentialy what happens is that when the player uses the skill, the skill has no animation, so even if the scope is the user, it won't play the animation incorrectly, instead, the note tega will call the common event, wich will always play the animation on the whole troop,
Original thread: https://forums.rpgmakerweb.com/threads/battle-animations-not-anchored-to-player-or-enemy.182569/