Is there a way to know exactly how much an animation (the effekseer kind) last?
I tried to look in the editor and in the JSON but didn't find anything useful 🙁
I tried to look in the editor and in the JSON but didn't find anything useful 🙁
sendTrigger. Might've missed something, though.SceneManager._scene._spriteset?.isAnimationPlaying?.() but is quite flawed, was trying to find a better and more stable wayYea, I'm not sure what that is either. Maybe some kind of render time measurement. 😴
Oh, that should be easier! 😂
$gameTemp.requestAnimation method to play an animation on a Game_CharacterBase (player, map event, etc) then you can check using the character's isAnimationPlaying method, e.g.$gamePlayer.isAnimationPlaying()
startAnimation, endAnimation, and isAnimationPlaying methods on Game_BattlerBase, mimicking the ones on Game_CharacterBase. The start/end methods should be called automatically by the core scripts (duck-typed), allowing you to check battlers the same way as map characters.Sprite_Animation has an isPlaying method, so if you have a reference to the sprite then you can just check that directly, e.g.myAnimSprite.isPlaying()
update method that gets run each game frame, e.g. you could patch the update method of Game_Map:void (() => { // IIFE for local scope
const alias = Game_Map.prototype.update; // store original method
Game_Map.prototype.update = function(sceneActive) { // redefine method
alias.apply(this, arguments); // invoke original method
// your code goes here!
};
})();
Original thread: https://forums.rpgmakerweb.com/threads/knowing-animation-time.161051/