Realtree

From the to-do list: 001 - Dev Edits

✔ preloader anim asset

Comments

Justin Bernard on September 10, 2015:

bring realtree logo (just the text/antler one) into flash as vector.  make it like 500x500 or so.  just blk logo on wht canvas.  i'll animate a little looping preloader we can export as a png/sprite sheet

Taylor Bernard on September 10, 2015:

Justin Bernard on September 10, 2015:

make note that in scrum i said to do cccd first, then realtree, so that arlen can work on cccd...

Taylor Bernard on September 10, 2015:

Taylor Bernard on September 14, 2015:

heres the issue. the sprite sheet exports space on the right side, even when i tell it to trim. so the individual frames start off correct, but the width of the frame gradually starts going outside of the viewport.

http://jsfiddle.net/g1akkrag/

i made a jsfiddle cause i dont know what was going on with server side. i even minified the lib, put it in the main, everything i did on jsfiddle yet its not running on the server.

Taylor Bernard on September 14, 2015:

doesnt make any sense. heres the last frame on the first row. shouldnt be that space there. but all the menu options should be taking it out.

Justin Bernard on September 14, 2015:

it's just an issue in sprite sheet export options i think.  prob where you are saying autosize/img dimensions.  i think that spritely code expectes them to be in one long strip, not rows/columns like flash is exporting, i think, check on that

here's a sprite exporter i used a few years ago that worked great

www.bit-101.com/blog/?p=2977

Taylor Bernard on September 14, 2015:

tried about 4 diff sprite sheet exports most dont work.

got this closer. it looks like the sheet i generated didnt put them perfect and some are off a pixel or so. but i found what the code is wanting.
that sprite sheet is a single row horz layout. every other generator makes it a more logical 2048x2048 size image like a grid.

http://jsfiddle.net/g1akkrag/1/

Justin Bernard on September 15, 2015:

its working now, and thats def what hte issue was, the strip as opposed to a grid of sprites

you had the wrong image count, had it at 30 instead of 27, that was making the jump

http://jsfiddle.net/g1akkrag/2/

Taylor Bernard on September 15, 2015:

nah i def have 30 frame animation.

and its not  jumping side ways a few frame l/r 1px for you? it is for me. i'm seeing the next frame on the side by 1px.

Taylor Bernard on September 15, 2015:

i dont think its supposed to be that way. their bird layout in the documentation is 3 frames horz. but EVERY sprite sheet generator out there makes an actual sheet. not a strip.

plus. i think ive seen where PNG has a limitation on file width loading on some things. i think its 8-9000px max. i think this one is 9600'ish px wide and its only 27 frames.
i KNOW iOS has a cap on png dimensions. i want to say 2-4000px MAX. so that means this wouldnt work on mobile.