article thumbnail

Maximum number of sprites?

Cocos

I’m not getting any errors, it simply doesn’t show a sprite. In fact, the sprite that I pull from the cache isn’t null, but nothing shows up. Later, when I want the sprites, I call jerseySprite = Sprite::createWithSpriteFrameName(jerseyName); Right now, I’m wondering if maybe I’m doing something wrong.

Sprite 40
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
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

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
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

Node setSiblingIndex()

Cocos

In cocos 2D i used to set the zindex with higher value to move that symbol/sprite/image in front/top of other images. Currently the code is maintaining the order based on index of child while i believe it should be a separate property on node based on which order is rearranged. Hi @s_agarwal I am working on slot game.

Sprite 52