Manoj Kumar Rai
Manoj Kumar Rai

Reputation: 103

How to create custom Action in cocos2d-x

I am new to cocos2dx and I want to make my own custom action like MoveTo or MoveBy.

Please help me
Thanks in advance

Upvotes: 2

Views: 647

Answers (1)

AAryan
AAryan

Reputation: 20140

Cocos2d-x having number of Actions like MoveTo/By, RotateTo/By, ScaleTo/By, FadeIn/Out, TintTo/TintBy....

Furthermore you can create complex Actions by sequencing two or more actions by Sequnce Action.

If you need own implementation create child of ActionInterval and implement your own requirement.

An interval action is an action that takes place within a certain period of time. It has an start time, and a finish time. The finish time is the parameter duration plus the start time.

Upvotes: 2

Related Questions