Skip to content

CoTMMO/CCLabelBMFontAnimated

 
 

Repository files navigation

CCLabelBMFontAnimated

CCLabelBMFontAnimated is a label class for Cocos2d-x, inheriting for LabelBMFont. The primary feature of this class is to easily enable the running of Cocos2d actions on the individual letters of a label.

Actions can be run on an individual letter, on all letters simultaneously, on each letter sequentially, or on each letter sequentially in reverse. When running actions sequentially, a duration can be specified.

There is also the option to get the label to remove itself on completion of the action (useful, for instance, if the action is a fly past, or animate out), and also the option to pass in a CallFunc action, to be executed when the full action has completed.

See the following YouTube video for an example of what can be done with this class: http://youtu.be/Ku8kq8CY_vk

Copyright (c) 2015 Steve Barnegren

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Animatable label for Cocos2d-x

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 61.1%
  • Objective-C 16.5%
  • C 13.4%
  • Java 3.7%
  • Objective-C++ 2.4%
  • CMake 1.2%
  • Other 1.7%