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

Effective way of using spine animation as sprite

Cocos

Hi, in my game I used alot of spine animation. But the render overhead is quite high compare to sprite even when I set timeScale = 0 and cache to SHARE_CACHE. I don’t want to create separate for that spine to save memory usage. So how can I optimize this? Thanks in advance.

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

Mask with sprite stencil and custom material?

Cocos

I’m attempting to make a UI mask with a sprite stencil. I have a shader that I’ve made that essentially takes the sprite and adds a glitchy effect to it… (like a static glitch on a hologram display) It works great with sprites and does exactly what I want it to do.

Sprite 40
article thumbnail

Mask with sprite stencil and custom material?

Cocos

I’m attempting to make a UI mask with a sprite stencil. I have a shader that I’ve made that essentially takes the sprite and adds a glitchy effect to it… (like a static glitch on a hologram display) It works great with sprites and does exactly what I want it to do.

Sprite 40
article thumbnail

Complete guide to Unity 2D animation

Game Development for Beginners

Unity is a very powerful Game development tool and in recent years Unity has put some efforts to help developers animate and model their game assets inside Unity. Unity 2D animation has grown a lot, now you can animate a 2D sprite using skeletal animation in Unity. In this tutorial, we will see how to. Read more

article thumbnail

Artwork Update: Sprite Rigs Complete!

Yotes Games

It took about a month and a half, but ALL the pony sprite pieces have finally been drawn and as of right now I can begin the frame-by-frame animation process! Should be done and in-game by April's end (but given how that estimate's measured in gamedev time, we'll see how that goes ?).

Sprite 52
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 ". start () {. this.collider.on(Contact2DType.BEGIN_CONTACT, code for the “key”.

Sprite 40