For example, if you want a specific event to fade in and out, is there away to do that with CSS?
MV Is there a way to assign a CSS class or ID to an event?
JS Plugin RequestsHave 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.
No, I get how to do that, that's no problem. I'm talking about applying CSS effects to events in general.
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.
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.
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?
forums.rpgmakerweb.com
Pixi Filter Controller - fancy screen effects by pixi (MZ version released!)
Filter Controller v2.0.9 Tsukimi (cji3bp62000) For anyone who is interested in this plugin but using RPG Maker MZ, there is a MZ version right HERE! last updated: 2018/03/13 minor update: update embedded PIXI.filters to v2.6.0 no any change on functionality. old updates: 2018/02/10 Fix...
forums.rpgmakerweb.com
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.
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.
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
xandyproperties of a character sprite. Typically the sprite updates automatically based on the character.
- You can rotate a character sprite using its
rotationorangleproperty, e.g.
- You can distort a sprite on a per-pixel basis with GLSL/PIXI filters, like Turan mentioned.
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/