Placing animations in specific locations mid-battle?

I know it's possible to play animations on enemies and players, but is it possible to play them at specific coordinates on the screen mid battle as well?


For example, playing an animation over the HUD or something along those lines.


Thanks in advance!
No. The animations must be played on a Sprite_Base object.


You can't play animations on the screen or windows. The best you can do is fake that by placing an empty sprite and playing the animation on that sprite, but this would require a good chunk of scripting.
No. The animations must be played on a Sprite_Base object.


You can't play animations on the screen or windows. The best you can do is fake that by placing an empty sprite and playing the animation on that sprite, but this would require a good chunk of scripting.



That's what I was afraid of...

So what's the best route for doing this? Making an invisible, untargetable enemy?
Not really an enemy, just make a "screen" sprite object at the center of the screen and play those animations on it... But you'd need to make sure the update of the battle scene updates that sprite so that the animation would update
Not really an enemy, just make a "screen" sprite object at the center of the screen and play those animations on it... But you'd need to make sure the update of the battle scene updates that sprite so that the animation would update



Any advice on how I'd go about doing that?


I'm doing fine with RMMV's scripting, but I'm at a loss once I get into JS... :\
How can you be fine with MV's scripting but lost at JS when MV's scripting is JS?


Not sure about the specific way to do it in JS, but what I used to do in Ace is just make a new sprite object, save it in a variable so I can access it later then when I need to show a "screen" animation, I just set the animation to play on that sprite and make sure that the update method also calls the update of that sprite (for the animation to move)


I'd say check out MV's battle sequence and look at how it show's animation on the battlers, that should give you an idea. 
How can you be fine with MV's scripting but lost at JS when MV's scripting is JS?


Not sure about the specific way to do it in JS, but what I used to do in Ace is just make a new sprite object, save it in a variable so I can access it later then when I need to show a "screen" animation, I just set the animation to play on that sprite and make sure that the update method also calls the update of that sprite (for the animation to move)


I'd say check out MV's battle sequence and look at how it show's animation on the battlers, that should give you an idea. 


Maybe I'm using the wrong term, but I mean to say that I'm fine with creating long common events to make button press-based combat a reality. I'm just no good when it comes to specific JS calls and going "under the hood" of the event system to make things happen that aren't readily available in the user-interface or via plugin. :\


For example, I don't know how to make a new sprite object in MV. TBH, I'm kind of surprised no one has made a plugin that would allow you to play an animation on screen yet (or if it exists, I've yet to find it despite having searched).
TBH, I'm kind of surprised no one has made a plugin that would allow you to play an animation on screen yet 



TBH, I thought of it once but I just brushed it as not really needed.. At least playing animations on screen outside of the animations by the commands/skills
TBH, I thought of it once but I just brushed it as not really needed.. At least playing animations on screen outside of the animations by the commands/skills



Well, in hindsight, I'm realistically asking too much of the engine already and should probably be using something else. So yeah, the problem is likely on my end.
Not really, it would be easy to add, it's just that not so many people thought of having extra animations running around the battle screen probably especially showing some on the HUD... and we don't even know why and when you want the animation to show... 
Not really, it would be easy to add, it's just that not so many people thought of having extra animations running around the battle screen probably especially showing some on the HUD... and we don't even know why and when you want the animation to show... 



In this case, I'd like to get animations working because it would make it easier to add "pop" to visual action elements.


For example, one of these elements involves timing a button press when a cursor is over a target (a concept that has been around since forever, but it still serves its purpose). Right now, I'm having the target fly off and change its tint as it goes, but it would be MUCH flashier if I could immediately remove it and play an animation over it that makes it explode instead.


I mean, I COULD have every frame of the animation play out in order via making it display each frame as a picture, but that just seems wasteful.

Original thread: https://forums.rpgmakerweb.com/threads/placing-animations-in-specific-locations-mid-battle.64314/