Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

.

eivl

Local Hero
Xy$
0.00
It is controlled here.

You see the mod 4 opperator keeps the static variable under control

JavaScript:
Sprite_Actor.prototype.updateMotionCount = function() {
    if (this._motion && ++this._motionCount >= this.motionSpeed()) {
        if (this._motion.loop) {
            this._pattern = (this._pattern + 1) % 4;
        } else if (this._pattern < 2) {
            this._pattern++;
        } else {
            this.refreshMotion();
        }
        this._motionCount = 0;
    }
};
 

eivl

Local Hero
Xy$
0.00
Let me know if you need anything. There are also alot of skillfull people here that have the time to help ;)
 
Top