Giter Club home page Giter Club logo

movieclipx's Introduction

MovieClipX

MovieClipX (mcx) is a very slick library based off the original MovieClip library for Corona SDK. It adds a few very awesome features including

  • mcx objects. A MovieClip master object capable of housing multiple different MovieClip animations.
  • Retina display support.
  • Animation speed control.
  • And more features coming soon.

Usage Tutorial

I'd recommend following the tutorial listed here to learn the proper way to use MovieClipX.

Extra tip: to automatically scale down your graphics for older phones use my utility MultiRezer instead of doing your sprites one by one! MultiRezer download: http://project239.com/multirezer

Functions

mcx.new()

Creates a new mcx object

myMCXObject:newAnim(newAnim("animation_name", {frames}, width, height, speed)

Creates a new animation in an mcx object

myMCXObject:play("animation_name"[, params])

Plays an animation in an mcx object. You can use the secon argument (optional) to specify parameters. These are the same parameters as in the original movieclip library.

myMCXObject:pause()

Pauses the current animation in an mcx object

myMCXObject:togglePause()

Toggles between the playing/paused states

myMCXObject:stop()

Stops an animation in an mcx object

myMCXObject:currentAnimation()

Returns the name of the current animation

myMCXObject:currentFrame()

Returns the number of the current frame

myMCXObject:isPaused()

Returns a boolean with the current paused state

myMCXObject:isPlaying()

Returns a boolean with the current playing state

myMCXObject:enableDebugging()

Enable terminal output for your mcx object

myMCXObject:disableDebugging()

Disable terminal output for your mcx object

Credits

Garet McKinley (iGARET.com)

Not satisfied?

If you've found a problem or want to make a suggestion please by all means, do so! I love to hear feedback! It's what makes it grow with features that people really need.

Thanks for using the MovieClipX library!

movieclipx's People

Contributors

aritheelk avatar dianthudia avatar u1tnk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.