MV Is there a way to assign a CSS class or ID to an event?

For example, if you want a specific event to fade in and out, is there away to do that with CSS?
Have you tried the Change Transparency event/move route commands?
MV/MZ events (nor tiles... nor anything on that main canvas) are not HTML elements thus CSS doesn't apply to them.
Have you tried the Change Transparency event/move route commands?

No, I get how to do that, that's no problem. I'm talking about applying CSS effects to events in general.

MV/MZ events (nor tiles... nor anything on that main canvas) are not HTML elements thus CSS doesn't apply to them

I just want to make sure I understand you, so let me get this strait. Are you saying there is no way to assign a CSS effect to a specific event? Or even a picture?
Pictures and Windows Might be doable, but you could take a look at
111_inputForm that uses css for button and input window 🙂

I dont know if it can target events in general further like Ocram said though.
Well, crap. I guess if @ATT_Turan, @OcRam, @caethyril, and @ShadowDragon are all telling me it's a lost cause, then I guess all hope is lost.

Still, though... it would be SO COOL if you could add CSS3 effects to events. Like breathing effects, blinking, bouncing, rotating, spinning, flashing, fading, etc. But I guess that is beyond the scope of what is possible with RM.

Oh well.
You can put Pixi effects on the screen. Have you looked at this?
You can put Pixi effects on the screen. Have you looked at this?

I have, and that's awesome, but for now I'm interested in applying visual effects to specific events. There is the "MOG_CharacterMotion" plugin, but it's very limited, fussy, unpredictable, and just kind of a mess. It seems like MOG is using basic CSS functions, but I looked at his code until my brain started hurting, and I don't see any CSS, inline styles, or anything.

Let me put it this way: I know that there are ways to manipulate images with js. But what I'm, asking is: Is there a way to apply CSS effects to specific events?
You can make a fade out effect using Change Opacity and Wait commands in a move route.

Still, though... it would be SO COOL if you could add CSS3 effects to events. Like breathing effects, blinking, bouncing, rotating, spinning, flashing, fading, etc. But I guess that is beyond the scope of what is possible with RM.
You don't need to get dramatic, there's more than one way to get something done. These effects are all perfectly possible using the engine as-is. Just not with CSS, because that is not how the engine is built. Examples:
  • You can effect a per-pixel translation by changing the x and y properties of a character sprite. Typically the sprite updates automatically based on the character.

  • You can rotate a character sprite using its rotation or angle property, e.g.
    Edit - and here's a version that seems to be compatible with RMMV's older JS/PIXI base:
    Spoiler: plugin code (mv)
    JavaScript:
    /*:
     * @target MV
     * @plugindesc Make characters rotate.
     * @author Caethyril
     * @help Free to use and/or modify for any project.
     * 
     * Rotate a Game_CharacterBase using this script call:
     *        CHAR.rotate(RATE, REVS);
     *   e.g. $gamePlayer.rotate(2, 1);
     *   e.g. $gameMap.event(1).rotate(6);
     *   Replace:
     *     - CHAR with a Game_CharacterBase reference;
     *     - RATE with the clockwise rotation per frame, in degrees;
     *     - REVS with the total number of revolutions to make.
     *   REVS is optional: if omitted (or 0) then rotation will be indefinite.
     *   Use RATE = 0 to stop rotation.
     */
    
    (alias => {
        Sprite_Character.prototype.updatePosition = function() {
            alias.apply(this, arguments);
            this.y += this.pivot.y;       // external anchor offset
        };
    })(Sprite_Character.prototype.updatePosition);
    
    (alias => {
        Sprite_Character.prototype.updateOther = function() {
            alias.apply(this, arguments);
            this.updateRotation();      // see below
        };
    })(Sprite_Character.prototype.updateOther);
    
    (() => {
        
        /**
         * @param {Number} [rate] Degrees of rotation per frame (default: 0).
         * @param {Number} [revs] Number of complete revolutions to make (default: 0).
         * @returns {{rate:Number,revs:Number,turn:Number}} Character rotation data.
         */
        const mkRotationData = function(rate = 0, revs = 0) {
            const fRate = ((Number(rate) || 0) * Math.PI / 180) % (2 * Math.PI);
            const iRevs = parseInt(revs, 10) || 0;
            return fRate ? { rate: fRate, revs: iRevs, turn: 0 } : null;
        };
    
        /**
         * Sets y-pivot to the midpoint of the sprite's current frame.
         * @param {Sprite_CharacterBase} sprite Sprite_CharacterBase reference to update.
         */
        const updatePivot = function(sprite) {
            sprite.pivot.y = -sprite.patternHeight() / 2;
            sprite.updatePosition();      // to stop 1-frame positional glitch
        };
    
        // New: apply character rotation. See mkRotationData, above.
        Game_CharacterBase.prototype.rotate = function(rate, revs) {
            this._rotationData = mkRotationData(rate, revs);
        };
    
        // New: update character rotation. See Sprite_Character#updateOther, above.
        Sprite_Character.prototype.updateRotation = function() {
            const DATA = this._character ? this._character._rotationData : null;
            if (DATA) {
                const REV = 2 * Math.PI;
                updatePivot(this);
                this.rotation += DATA.rate;
                if (Math.abs(DATA.turn += DATA.rate) >= REV) {
                    DATA.turn -= REV;
                    if (--DATA.revs === 0) {            // allow indefinite
                        this._character.rotate(0);
                    }
                }
            } else {
                this.rotation = 0;
            }
        };
    
    })();

  • You can distort a sprite on a per-pixel basis with GLSL/PIXI filters, like Turan mentioned.
If you're just looking for the ability to automatically interpolate things, consider searching for a "tweening" plugin.

It would be possible to write a whole custom CSS-in-RMMV interpreter using JavaScript, but that would be an awful lot of effort just so you can have the interface be CSS instead of PIXI/GLSL.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-assign-a-css-class-or-id-to-an-event.154277/