Giter VIP home page Giter VIP logo

flixel-textureatlas's Introduction

Flixel-TextureAtlas

This is obsolete and was mostly done to test out shit, not to be an actual final solution, use https://github.com/Dot-Stuff/flxanimate instead as it actually works the way TextureAtlas is intended to work. Very experimental Flixel implementation for Animate 2018 (2018 ONLY RIGHT NOW!) TextureAtlas. Mostly a fork of Original.

Credits / shoutouts

Current changes done to the original Code:

  • Flixel Implementation
  • BlurEffect support
  • Some very minor fix stuff

Usage/Current Limitations

This is a very early build, but it works(kinda), so there's a few limitations, including:

  • Animate 2018 Only (i don't fucking know why)
  • Not all Animate Effects are working yet(BlurEffect works, but GlowEffect etc. doesn't, also very laggy)
  • Generated bitmaps cut off sometimes(Might be able to fix that soon) - FIXED NOW!
  • Exported spritemap.json are set to "UTF-8-BOM" encoding for some reason, change it to "UTF-8" instead or you'll get a crash!

How to do the thing: Make a movieclip in Animate, put all animations with their frames in there. Then, click on the first frame of each animation, go to "Properties", and give the animation a label. That label will be the animation name.

Usage in Flixel is made as easy as possible, you give it to a Sprite just like a normal Spritesheet animation:

  • sprite.frames = AtlasFrameMaker.construct(Path,excludeArray)
  • Usage Example : sprite.frames = AtlasFrameMaker.construct('assets/images/TextureAtlas/PICO,['Idle,'Left','Right','Shoot'])

Path is the path to the folder that's generated by Animate(duh). ExcludeArray excludes animations from being created. Let's say you have 2 GF versions on 1 TextureAtlas, you could exclude the animations from the one that you don't need currently,making it load faster.

ALSO MAKE SURE TO ALIGN THE ANIMATIONS YOU PLACE TO LEFT AND TOP USING "ALIGN" IN ANIMATE! There's an example .fla so you can see what you gotta do. If you need help with using it, DM me on Discord: Smokey#9928

flixel-textureatlas's People

Contributors

alanyao avatar bbpanzu avatar smokey555 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flixel-textureatlas's Issues

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.