MV Changing the Touchscreen/Mouse Movement Indicator

Is there any way to change the flashing indicator that appears when you select the movement destination with a touch screen or the mouse? I'm sorry if there is some other term for this, but I can't think of how to better describe it

Spoiler: Screenshot
Cursor Screen shot.png

I am working on a project with a particular aesthetic and hope to change this to match.
Moved to: Plugin Requests
Yeah! You just copy Sprite_Destionation to a new plugin and edit the createBitmap method, and potentally the updateAnimation method to suit your tastes.

For example, you could put a png file in the system folder called Destination.png and load it like this.


JavaScript:
Sprite_Destination.prototype.createBitmap = function() {
  this.bitmap = ImageManager.loadSystem('Destination');
  this.anchor.x = 0.5;
  this.anchor.y = 0.5;
};
Thank you, MechPen.

What if I want to have the destination sprite flash between two, or more, images?

This is the first time I'm really messing at all with Java Script and I'm not sure what to add after the update Animation to change the sprite picture then back again.

Right now I have:
JavaScript:
Sprite_Destination.prototype.updateAnimation = function() {
    this._frameCount++;
    this._frameCount %= 20;
    this.opacity = (500);
    this.scale.x = 1;
    this.scale.y = this.scale.x;
};
As an aside, opacity 500 doesn't make sense. it's 0-255 due to old engine convention.

You can use setFrame to do this! First you'd need your Destination.png to be a 96x48 pixel image (so have your two frames side by side.) setFrame works by taking an x, y, width and height and basically cropping your big png to the part of the image you want to show. almost everything in MV is animated this way.

Then you'd do something like


JavaScript:
Sprite_Destination.prototype.createBitmap = function() {
  this.bitmap = ImageManager.loadSystem('Destination');
  this.setFrame(0, 0, 48, 48);
  this.anchor.x = 0.5;
  this.anchor.y = 0.5;
};




Sprite_Destination.prototype.updateAnimation = function() {
    this._frameCount++;
    this._frameCount %= 20;
    if (this._frameCount > 10) {
        this.setFrame(48, 0, 48, 48);
    } else {
        this.setFrame(0, 0, 48, 48);
    }
    this.opacity = 255;
    this.scale.x = 1;
    this.scale.y = this.scale.x;
};
That was perfect!

Thank you so very much.

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-touchscreen-mouse-movement-indicator.134596/