Hey all, thanks for taking the time to check out this thread. I'm looking for a plugin that gives me more options when it comes to choosing a picture's origin. The default lets us choose from the upper left and center of a picture, which is fine but I was hoping to use the bottom corners to make it easier to place busts at the edge of the screen. And once I thought about using the bottom corners as an origin, I thought that adding a few more could be possible too.
So instead of the two default origins like this:
I'm hoping for a plugin that would let me pick from nine origin options like this:
I found this code in the rmmz_sprites code that I think is what controls the default commands picture origin, but that's where my javascript knowledge ends. 😅
I was thinking the plugin could use plugin commands to give those new origin options alongside the rest of the normal Show Picture and Move Picture details (the stuff like position, scale, blend, duration) so that's it's easier to use than needing to make sure a script call is written correctly each time.
I hope that's enough details to get someone started, but if you need more info let me know. Thanks in advance.
So instead of the two default origins like this:
I'm hoping for a plugin that would let me pick from nine origin options like this:
I found this code in the rmmz_sprites code that I think is what controls the default commands picture origin, but that's where my javascript knowledge ends. 😅
Code:
Sprite_Picture.prototype.updateOrigin = function() {
const picture = this.picture();
if (picture.origin() === 0) {
this.anchor.x = 0;
this.anchor.y = 0;
} else {
this.anchor.x = 0.5;
this.anchor.y = 0.5;
}
};
I hope that's enough details to get someone started, but if you need more info let me know. Thanks in advance.
