150 posts
Posted 02 July 2015 - 06:47 AM
This Question has probably been asked a million or more times, I have looked near and far and i can't find any docs on how to use the npaintpro nfa file. i need it to play during on of my scripts i found the page something like 1 and 1/2 years ago but i can't seem to find any docs on any part of the nfa extension now. It would be nice if someone gave me a hand with this,
Thanks in advance
Rougeminner
oops i need to move this! this is ask a pro not api stuff my bad
i can't find out where to move it :(/>
Edited on 02 July 2015 - 04:48 AM
513 posts
Location
Australia
Posted 02 July 2015 - 07:38 AM
It's pretty simple. It's identical to a paint file in terms of image content; each character is a hexidecimal digit, representing one of the 16 colours-
http://computercraft.info/wiki/Colors_%28API%29 . A space character represents null. There is no header information on file size; this is inferred from the column width and file length. Most paint files (and I believe NFA files) add null spaces for even row lengths.
NFA files are identical, but with the addition of tilde (~) separators to indicate the end of a single frame. When making an NFA in NPaintPro, it will ensure each frame has the same number of rows.
7083 posts
Location
Tasmania (AU)
Posted 02 July 2015 - 09:10 AM
Is there any frame rate control, or how does that work?
150 posts
Posted 02 July 2015 - 04:31 PM
So i just call paintutils to draw the playing animation?
7083 posts
Location
Tasmania (AU)
Posted 03 July 2015 - 12:46 AM
You should be able to use paintutils.drawImage() to get your loaded images onto the screen, but you'll need to write your own version of paintutils.loadImage() to get the images from the NFA files.
150 posts
Posted 03 July 2015 - 04:35 AM
Grrrrrr… I should have made a hundred page Anim :(/>. I sill write an api so none else has to do this. I thought i recalled npaintpro having s builtin api to play them. Guess i was mistaken
EDIT: BEFORE i do this does gameutils have a similar function? i don't want to do something i don't have to do i just found out that nft's don't work either. and building a reader for those exts could get tedious.
Edited on 03 July 2015 - 03:32 AM
150 posts
Posted 03 July 2015 - 07:11 AM
bombbloke: yes you can have frame rate control i just built an API for it that just so happens to have setFrameRate in it all it is a a number that waits the inputed amount of time before it clears itself not really framerate control but it gives you a frame rate(ish), This Post is Solved! THX everyone