Remove Animation Remove Code Remove Sprite
article thumbnail

Physics and sprite animation dont works

Cocos

Hi, I have a small problem when i use Physics with animation. Basically the problem is here: sprite->runAction(RepeatForever::create(animate)); If i comment this line, it works.

Sprite 52
article thumbnail

The Spine Animation Story at Logic Simplified

Logic Simplified

Whoever thought Spine 2D animation reminds you of a paper doll craft, where you move all the body parts to create animations, was right! Spine is a 2D skeletal animation tool for game development and other animation projects. One, how Spine works as a great 2D animation software. How does it work? They create!

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

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

article thumbnail

Noob question about scripting animation

Cocos

That being said, I’m trying to determine if I can do something a certain way, and, if so, can someone provide a basic example of what the code would look like? Currently, my client engineer has 5 cards being dealt and each card sprite pulls from a random card image on an atlas. So, I am trying to create a card flip effect.

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

[CC 3.8.1] AnimationClip.createWithSpriteFrames not working

Cocos

hi, I am leaning CC, I am more interested write code than using tool CC, but that is not working. I am using CC version 3.8.1 I am using CC version 3.8.1 createAnimationArray(bien,['23020_0_8', '23020_0_9', '23023_3_6'], 0.1, createAnimationArray(bien,['23020_0_8', '23020_0_9', '23023_3_6'], 0.1,

article thumbnail

Cocos 3.7.3 Using Material setProperty on Spine only take effect for the first time

Cocos

Hi, I am writing a simple shader for spine, and use ts code to animate that shader by setProperty function. The same logic work with sprite, but not Spine. How can I make setProperty work inside a tween? Here is my demo TestShaderSpine.zip (5.3

Shaders 40