I want to create a production that disappears from Sprite.

Asked 1 years ago, Updated 1 years ago, 69 views

I am using cocos2d-x3.8.


Sprite characters
so that you can't see from top to bottom. I'd like to make a production.

In Scale, the characters are shrinking.
Something is wrong......

Are there any good means of runningAction?><

cocos2d-x

2022-09-30 21:13

1 Answers

If you try to realize what Doriruman said, you will need to set UV settings for each frame, but I couldn't find those features in the cocos2d Action.

It's a powerful technique, but
1. Create an Animate that gradually narrows the scope of the SpriteFrame Rect setting
2. Create Action to Reduce Scale
Why don't you make a Spawn that plays these two at the same time and runAction?
If you want to match the origin of the scale to the top or bottom edge, you may want to set AnchorPoint beforehand.


2022-09-30 21:13

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.