Akea Animated Cursor

Akea Animated Cursor​

Introduction
This plugin adds an animated cursor for battlers and enemies!

How to Use
Just insert the plugin and read the help section.

Video


Image
Spoiler
dYm4uG.png
Plugin


FAQ
This plugin have any dependencies?

No, this plugin does not need the Akea Base

Is this plugin compatible with other battle systems?
It should be compatible in other sequence action plugins, if it isn't, you can contact me to make a compatibility patch.

Can I use this commercially?
Yes, this plugin is available for commercial usage, check out zlib license that this plugin is under to know more about.

Credit and Thanks
- Reisen (Mauricio Pastana)
- Holder for the Battlers
I installed the plugin and added a image but nothing seems to show up? Not sure what I did wrong?
I installed the plugin and added a image but nothing seems to show up? Not sure what I did wrong?
Can you show me how you configured on the parameters? and oops I did forget to upload the images, they are also free for commercial usage.
Thanks for the great plugin!

I have a question.
How do I change the cursor position?
I use different sized sprite sheets for different characters, so it's useful to be able to offset the cursor.

I've attached a screenshot of the battle scene.

It's a machine translation from Japanese, so sorry if it's funny English!
Thank you!

Spoiler: Battle scene
Sprite-0064.png
@Raizen I tried using your plugin just now and encountered a serious problem with framerate. It drops down to 30-40 fps when I use a special skill. The longer the battle goes on, the lower it gets. Worst it got to was 20, and I'm sure it can even drop to 0 if I was patient enough, lol. And it wasn't anything complicated, either, just the shoot barrage animation. I have the Visu Battle Core as well, and fps still drops even after I disabled it. Not sure what the issue is with your plugin. My PC isn't weak, either.

Hope to hear your explanation soon! =w= By the way, if there's a way to remove the cursor below the enemy, that'd be better.

@ganges You should be able to adjust the position by changing the offset value in the plugin menu. It's the "y offset" option.
If you have any trouble asking questions in English, just ask me and I'll translate for you.
@Raizen I tried using your plugin just now and encountered a serious problem with framerate. It drops down to 30-40 fps when I use a special skill. The longer the battle goes on, the lower it gets. Worst it got to was 20, and I'm sure it can even drop to 0 if I was patient enough, lol. And it wasn't anything complicated, either, just the shoot barrage animation. I have the Visu Battle Core as well, and fps still drops even after I disabled it. Not sure what the issue is with your plugin. My PC isn't weak, either.
@Mr. Detective
I'm not sure if this is even still relevant to you...

Also... I'm not sure if you're comfy editing the js directly.

But: your issue can be resolved if you edit line 177
if (!this._cursorMainSprite)
to
if (!this._cursorMainSprite && !this._akeaCursors)

By default the plugin draw cursors on everything that isn't the super class. Then draws cursors on everything that isn't the super class(plus itself)... This repeats until your framerate is single-digit.

If that doesn't salvage enough frames, you may need to insert some delays between line 285 and 308 to decrease how much the animated cursor is moving.

(I've been using something like:
Spoiler: Code
Sprite_Battler.prototype.updateAkeaMainCursor = function (sprite, controller) {
if (controller.directionRotation) {
sprite.scale.x -= controller.rotation;
if (sprite.scale.x <= -1) {
controller.directionRotation = false;
}
} else { setTimeout(function(){
sprite.scale.x += controller.rotation;
if (sprite.scale.x >= 1) {
controller.directionRotation = true;
};
}, 400);
}
if (controller.directionUp) {
sprite.y -= controller.motionSpeed;
if (sprite.y <= controller.y - controller.maxMotion) {
controller.directionUp = false;
}
} else { setTimeout(function(){
sprite.y += controller.motionSpeed;
if (sprite.y >= controller.y + controller.maxMotion) {
controller.directionUp = true;
};
}, 400);

Hope it helps, and hope your project has gone well since! ^_^

Original thread: https://forums.rpgmakerweb.com/threads/akea-animated-cursor.127150/