


This LUA allows you to create a animated image that showed frame by frame
This LUA is inspired by this thread:















Read it at download file page


There is a 2 ways to create it.

1. Create new folder at gfx folder. This folder will contain your image frame
2. Put all the image at folder that you create before
3. Create new text file called meta.txt and open it
4. Write this in meta.txt
1
2
2
<File Pattern> <Image mode> <Speed in miliseconds>
File Pattern - The file pattern(gonna explained below)
Image mode - Image mode(relative to

Speed - Frame speed in miliseconds
5. Save
6. On your LUA, put this code somewhere depending on your LUA execution code
1
animated_image_id=imageanimated("gfx/<Folder name that you're create>/",true,nil,<X>,<Y>)
Y - Y position of the image(pixels)
7. Save, and run your LUA script again to test it

1. Repeat step 1 and step 2 above
2. On your LUA, put this code somewhere depending on your LUA execution code
1
animated_image_id=imageanimated("gfx/<Folder name that you're create>/",false,"<File pattern>",<X>,<Y>,<Mode>,<Player that can see it>,<Speed>)
3. Save, and run your LUA script again to test it


File pattern is a string that represent all image frame name. Some Example:


1
gelap_%d.png









* - This variable doesn't re-created if already exist


Hooks: 0
Lines: 178
Size: 4068 bytes







































1. Your feedbacks, bug reports, suggestions on comments
2. It needs at least timerEx v3.0 or above(Because it's not override the variable, then you can delete the outdated timerEx)
3. Im sorry that there is no image but here is the link of the video: link
4. It needs some delay to show the first frame of the image when the function is called(maybe fixed at v1.1)
5. I put a example image frame at archive












































edited 4×, last 03.11.13 01:05:39 am
Approved by Seekay
Download
6 kb, 562 Downloads