I'm having trouble with figuring out how to make aan animation. Can anyone
give me an example source code or just exlain to me how it works?
help with animation
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- tentus
- Inner party member
- Posts: 1060
- Joined: Sun Oct 31, 2010 7:56 pm
- Location: Appalachia
- Contact:
Re: help with animation
https://github.com/bartbes/love-misc-li ... L/AnAL.lua
Essentially, we make a quad from the frame sheet, and then render different parts of that quad depending on time passed.
Essentially, we make a quad from the frame sheet, and then render different parts of that quad depending on time passed.
Kurosuke needs beta testers
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: help with animation
There is also https://github.com/kikito/anim8
You may find an explanation of how to use it on that same page.
Disclaimer: I'm the author of anim8
You may find an explanation of how to use it on that same page.
Disclaimer: I'm the author of anim8
When I write def I mean function.
Re: help with animation
Can I get an example animation of AnAL or anim8 cause I don't get it.
Re: help with animation
Me neither
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: help with animation
You may find a working demo of anim8 on its forum thread (the source code of the demo can also be seen on github, but in the demo branch)
When I write def I mean function.
Re: help with animation
I don't get how to make the grids.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: help with animation
Animations are made from a single image. That image contains the animated character in several positions, arranged in files and columns.
Grids allow you to define how big or small are those columns and rows. They are made with the anim8.newGrid(tw,th,iw,ih) function. The first two parameters are the dimensions (width and height) of the frames - the individual "squares" that compose the rows and columns - in pixels. The next two parameters are the total dimension of the image in pixels (again, width and height). You can ignore the rest from now, you'll probably don't need them yet.
Grids allow you to define how big or small are those columns and rows. They are made with the anim8.newGrid(tw,th,iw,ih) function. The first two parameters are the dimensions (width and height) of the frames - the individual "squares" that compose the rows and columns - in pixels. The next two parameters are the total dimension of the image in pixels (again, width and height). You can ignore the rest from now, you'll probably don't need them yet.
When I write def I mean function.
Re: help with animation
I still don't get it...
Who is online
Users browsing this forum: Google [Bot] and 78 guests