Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/26/2016 in all areas

  1. implementation by @isaacburns spriter.js A JavaScript API for the Spriter SCML/SCON animation data format. https://cdn.rawgit.com/flyover/spriter.js/master/demo/index.html Supported Features Basic animations Bone animations All curve types (Instant, Linear, Quadratic, Cubic, Quartic, Quintic, Bezier) Points Collision Rectangles SubEntities Events Sounds Variables Tags Character maps Animation Blending How to use it In the initialization: var scon = JSON.parse(scon_text); // read and parse SCON file var data = new spriter.Data().load(scon); // create and load Spriter data from SCON file var pose = new spriter.Pose(data); // create Spriter pose and attach data pose.setEntity("player"); // set entity by name pose.setAnim("idle"); // set animation by name In the animation loop: var dt = 1000 / 60; // time step in milliseconds pose.update(dt); // accumulate time pose.strike(); // process time slice Refer to the demo for how to blend animations, draw images, play sounds and respond to events, access tags and variables, etc.
    1 point
  2. lucid

    Fix my corrupted file?

    Hi @adamcreator, I sent you a link to your fixed file through the support system, but I'll detail the issues I found here, in case someone ever has similar issues. First, there were some png images that weren't importing to C2 correctly. This is usually caused by software that saves or converts pngs in a nonstandard way. I did a batch action in photoshop that just resaved the pngs. The jpgs were coming up as missing images in Spriter, this could cause issues with the save, which would make it not import correctly into c2. Your jpgs weren't loading correctly in Photoshop, so I saved blank pngs of the same size with the same names (just paste your jpgs into these pngs and save the png). Then you had certain objects with an exclamation point in the name, which was preventing c2 from generating the same name for the sprites. This may not have caused issues, since the associate action specifies the filename, but to be safe I renamed every object in the project by replacing the !'s with _'s. There were also files with '!' in the filename, which would eventually cause issues with on piece of software or another, so I changed those as well. Lastly, I'm not sure how it happened but there was an object listed in your file that no longer existed in the project. Because of the way it was being stored in the scml file, the scml plugin couldn't finish loading the file, so I removed that as well. On a side note, when I was attempting import, C2 was having issues with your wav files, and couldn't import them. In general, I'd advise not using special characters in filenames and object names, and if you're using any obscure software to save or convert images or sounds, that seems to be the root of a lot of issues, as Photoshop, C2, and Spriter all had trouble with some of your files. -cheers
    1 point
×
×
  • Create New...