article thumbnail

Tutorial: Cocos Shader Series - Use a Noise Map to Make a Dissolve Texture

Cocos

Blockquote const sprite = this.getComponent(Sprite); const mat = sprite.customMaterial; mat.setProperty(‘dissolveThreshold’, 0.5); Version 3.6.x, x, I using this code but it not bring Property affect to shader Ok, this work if turn of Packable in main Sprite inspector

Shaders 98
article thumbnail

Physics and sprite animation dont works

Cocos

Basically the problem is here: sprite->runAction(RepeatForever::create(animate)); If i comment this line, it works. I made a small project to show: GitHub GitHub - paulocoutinhox/axmol-bomb-test Contribute to paulocoutinhox/axmol-bomb-test development by creating an account on GitHub.

Sprite 52
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Sprite Outline Shader in Unity

Febucci

In this “Unity Sprite Outline” tutorial we’ll discover how to create both a “Sprite Innerline” and a “Outer Sprite Outline”. Simply, the Inner Sprite Outline shader is drawn “inside” the sprite, while “Outer” is the opposite. Inner Sprite Outline HLSL. Outer Sprite Outline HLSL. Show me the games.

Sprite 52
article thumbnail

How to change sprite of Mask component with SPRITE STENCIL type?

Cocos

Sprite component is automatically added to the node. I get this Sprite component from the code and set the SpriteFrame I need for it. I display in the console which SpriteFrame is set for the Sprite component. However, instead of a mask on the sprite, visually I see just a rectangle (as if the sprite was not applied).

Sprite 40
article thumbnail

Atari ST Programming: STOS BASIC Sprite Movement

Retro Game Coders

In the last part of this STOS BASIC Tutorial we loaded a sprite but it just sat there, let’s fix that … One of the ways that STOS BASIC helps us to build interactive programs and games is in the sprite movement features because they are not only easy, but they do their thing without our constant input. Why is this useful?

Sprite 52
article thumbnail

new jam game: Where's the beef

Radiator Blog

The concept is so simple that the Unity project has zero code / zero C# scripts. Instead, I leaned heavily on Unity UI and Unity Events for all my game implementation, playing with different button sprites that would disable each game object ("level") in sequence. So this is a game about literally finding beef and clicking on it.

Games 162
article thumbnail

Handle the collision of sprites

Cocos

I’m trying to handle the collision of two sprites, i added BoxCollider2D to the sprites. One sprite can jump (changing the y coordinate through animation), named "character ", the other is a static object, named “key”. code for the "character ". code for the “key”. code for the "character ". start () {.