What is the standard way to make animation of player movement(with anim8)?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
ilovelove2019
Citizen
Posts: 78
Joined: Wed Sep 11, 2019 10:38 am

What is the standard way to make animation of player movement(with anim8)?

Post by ilovelove2019 »

Hello everyone! Is there a standard way to make player movement animation with anim8? I'm newbie and i'm looking for a standard way to make it. I need an example to learn. That will have a player class, main.lua, and some more file if needed. That make player move simple up down left right and some animations for it. I have try a lot but I'm so stupid and my code is dump code and it's not a good way if I manage some big project in future. Can you help me, plz? Thanks you so much. And so sorry to bother you. :cry:
User avatar
bobbymcbobface
Citizen
Posts: 78
Joined: Tue Jun 04, 2019 8:31 pm

Re: What is the standard way to make animation of player movement(with anim8)?

Post by bobbymcbobface »

https://github.com/kikito/anim8/blob/master/README.md this link should hopefully give you a bit of help - I personally use a quad sheet method to create my animations but there's plenty of other methods out their

( Sorry I can't supply a lua file i"m on mobile)

There's also a lot of YouTube videos out their and love2d's wiki also provides an example

One can be found here ; https://love2d.org/wiki/Tutorial:Animation

Although this doesn't use anim8 it should hopefully give you a general basis for code

Also if you are starting off a game I recommend making the logic first then implementing animations but that's just my way of doing things :D

If you need any more help please feel free to quote me :)

Edit : this might help too https://youtu.be/_NpDbNtJyDQ
You can copy the code from the link in the description to see how it works
I make games that run on potatoes :P
Post Reply

Who is online

Users browsing this forum: Google [Bot], Semrush [Bot], 麻猫和黄猫 and 53 guests