Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rssImage Animation lib (50anim)

Category:script
Author(s):50p
Downloads:1394
Rate:You need to be logged in to vote
Rating:3 (5 Votes)
Description:
SpriteAnim lib. Have you even wanted to make 2D animations in MTA with sprite sheets? Here is a library to help you out.

Here is a video to show you a few examples: http://www.youtube.com/watch?v=nuAXLZcjLv4

This resource is an example of how to use it. Want to use the lib in your own script? Just copy the c_SpriteAnim.lua file to your resource and add it to meta.xml.

How to use the lib:
To create your own animation you need to call SpriteAnim: new() function. Here are its parameters:
SpriteAnim: new( filename, x, y, width, height, uCount, vCount, fps )

* filename: path to the sprite sheet
* x, y: X and Y position of the animation on the screen
* width, height: exactly what it says (single sprite size is best)
* uCount, vCount: number of frames in a row and column (respectively)
* (optional) fps: frames per second (speed of the animation itself)

Additional tool:
Gif 2 Sprite is a tool that will let you create a sprite sheets from GIFs, so you can create animations for your server even easier!
Gif2Sprite download:
http://scripteditor.beta.mtasa.com/files/Gif2Sprite.zip
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
1.0.0 2012-10-18 01:18:47 First public release Download