article thumbnail

Noob question about scripting animation

Cocos

Most of my time working in cocos has been devoted to shader work. Currently, my client engineer has 5 cards being dealt and each card sprite pulls from a random card image on an atlas. I would like to put the image of the card’s back as the default sprite frame. So, I am trying to create a card flip effect.

article thumbnail

Making shaders more accessible

Mircosoft Game Dev

About shaders. For most game developers, shaders are this scary monster that presents itself with such a complexity that it seems out of reach. In reality, shaders are quite simple by default and just get more complex the more you add to them. Our sprite is 32x32 pixels in size, and it must be drawn at some position.

Shaders 52
article thumbnail

Godot's 2D engine gets several improvements for upcoming 4.0

Mircosoft Game Dev

x is that, several times, sprites are separated in many nodes in order to be animated or assembled. If a shader is applied to them, or if transparency is changed, the effect is applied to every node individually, given they each do it in their own draw call. 2D Masking / Clipping. This has been added for 4.0 CanvasGroup.

Engine 54