- Joined
- Mar 28, 2016
- Messages
- 1,623
- Reaction score
- 1,439
- First Language
- French
- Primarily Uses
- RMMV
Someone would have an idea to set the origin point of an image.
I would like anime picture with rotation with custom origin.
But I need define the point of origin, other than original (top left and center.)
I find something in the core, but being beginner in java ...
logically it should be like her ???
Originetest= [20,10];
$gameScreen.showPicture(pictureId, name, Originetest, x, y, scaleX, scaleY, opacity, blendMode);
or maybi ?
$gameScreen.showPicture(pictureId, name, [20,10], x, y, scaleX, scaleY, opacity, blendMode);
I found this in core ?
_updateLayerPositions = function(startX, startY) {
var m = this._margin;
var ox = Math.floor(this.origin.x);
var oy = Math.floor(this.origin.y);
var x2 = (ox - m).mod(this._layerWidth);
var y2 = (oy - m).mod(this._layerHeight);
var w1 = this._layerWidth - x2;
var h1 = this._layerHeight - y2;
var w2 = this._width - w1;
var h2 = this._height - h1;
Also , do you know if RMMV 1.3 will have so good feature for work with picture ?
I would like anime picture with rotation with custom origin.
But I need define the point of origin, other than original (top left and center.)
I find something in the core, but being beginner in java ...
logically it should be like her ???
Originetest= [20,10];
$gameScreen.showPicture(pictureId, name, Originetest, x, y, scaleX, scaleY, opacity, blendMode);
or maybi ?
$gameScreen.showPicture(pictureId, name, [20,10], x, y, scaleX, scaleY, opacity, blendMode);
I found this in core ?
_updateLayerPositions = function(startX, startY) {
var m = this._margin;
var ox = Math.floor(this.origin.x);
var oy = Math.floor(this.origin.y);
var x2 = (ox - m).mod(this._layerWidth);
var y2 = (oy - m).mod(this._layerHeight);
var w1 = this._layerWidth - x2;
var h1 = this._layerHeight - y2;
var w2 = this._width - w1;
var h2 = this._height - h1;
Also , do you know if RMMV 1.3 will have so good feature for work with picture ?
