public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

TransformStatic , update rotation Reset skew , scale , why ? PIXI

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: TransformStatic , update rotation Reset skew , scale , why ? PIXI
  • Original author: Jonforum
  • Original date: January 13, 2018
  • Source thread: https://forums.rpgmakerweb.com/threads/transformstatic-update-rotation-reset-skew-scale-why-pixi.89858/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Learning Javascript

Summary

hi guys, am trying to make a simple easing loop animation. For this, I need pass a obj scrope with propreties. So, i pass the TransformStatic scope. How i can perform correctly and update skew, scale, and rotation.

Archived First Post

hi guys, am trying to make a simple easing loop animation.
For this, I need pass a obj scrope with propreties.
So, i pass the TransformStatic scope.

How i can perform correctly and update skew, scale, and rotation.
Rotation seem to always reset my transform!, maybe am not understand correctly how this work.
thank for help

34860371-ef1d32a6-f72a-11e7-923c-e185c695564c.png


i have found an tempory alternative for now, i have modify the update of my EASE animation system.
The problem is that I have to point to 2d properties. ( this[props][props2] )
and this not good for performance in the update.

ideally I would like a suggestion to manage everything in TransformStatic.
So for now instead pass TransformStatic, i pass the PIXI.SPRITE, and use props
this.rotation,..
this.x, ...
this.alpha..
this.skew.x ..(2D deep mode for udpate)
this.scale.x ..(2D deep mode for udpate)

but what i need to do its something like this .
PHP:
 // from scope TransformStatic
this._cx = newValur;
this._cy = newValur;
this._sy = newValur;
this._rotation = newValur; // not work when upd localID!?
this._localID++; // this seem to update all transform but not the rotation
// so
this.rotation = newValur;
//!!! ho, rotation reset all data transform!! why and how fixe this

this its the update easing, see at // its 2d PIXI DEEP PROPRETY

PHP:
          for(var prop in this._valuesEnd) {
              if(typeof this._valuesEnd[prop]==='number'){
              var start = this._valuesStart[prop];
              var end = this._valuesEnd[prop];
              this._valueSetCallback(this._object, prop, start + (end - start) * progress);
              }else{ // its 2d PIXI DEEP PROPRETY
                  for(var prop2D in this._valuesEnd[prop]) {
                      var start = this._valuesStart[prop][prop2D];
                      var end = this._valuesEnd[prop][prop2D];
                      this._valueSetCallback(this._object[prop], prop2D, start + (end - start) * progress);
            
                  }
              }
          }

i need to find a way to use all _props in the transformatic
[scale,skew,rotation] and the localID++ for update, but without reset data, for avoid use 2D deep object.

it is not urgent because my alternative works, but at the expense of a loss of optimization.
thank


https://github.com/pixijs/pixi.js/blob/dev/src/core/display/TransformStatic.js#L177

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

Referenced Images / Attachments

34860371-ef1d32a6-f72a-11e7-923c-e185c695564c.png
34860371-ef1d32a6-f72a-11e7-923c-e185c695564c.png
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#rpg-maker-archive#js-learning

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar