Help with playeranim.lua

This is the place for discussion and support for LunaLua and related modifications and libraries.
Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
User avatar
Vito_Studio
Rex
Rex
Posts: 91
Joined: Mon Jan 08, 2018 6:07 pm
Flair: Vito
Current Project: Not gonna ruin the surprise
Chat Username: Vito
Contact:

Help with playeranim.lua

Postby Vito_Studio » Tue Feb 20, 2018 11:58 pm

Hello. Sorry if it was questioned but I would like to know how to use playeranim.lua. I want to add some extra frames for the character but I am so bad at coding so can you please guide me? If its possible can you use an example?
Hey check what I'm supporting:
Image

My Ex-Project:
Image

User avatar
WildWEEGEE
Koopa Shell
Koopa Shell
Posts: 664
Joined: Thu Dec 14, 2017 2:21 pm
Current Project: things
Chat Username: WildWEEGEE

Re: Help with playeranim.lua

Postby WildWEEGEE » Tue Mar 20, 2018 1:40 am

Bumping this because I’ve found a similar thread that may hold the answer you’ve been looking for
https://www.supermariobrosx.org/forums/ ... ua#p262591
I have absolutely no idea what my current project is... My interests always seem to shift
I support: show
ImageImage
Looking back at every one of my posts, I cringe, hard, very hard.

User avatar
Vito_Studio
Rex
Rex
Posts: 91
Joined: Mon Jan 08, 2018 6:07 pm
Flair: Vito
Current Project: Not gonna ruin the surprise
Chat Username: Vito
Contact:

Re: Help with playeranim.lua

Postby Vito_Studio » Tue Mar 20, 2018 3:43 am

WildWEEGEE wrote:Bumping this because I’ve found a similar thread that may hold the answer you’ve been looking for
https://www.supermariobrosx.org/forums/ ... ua#p262591
I saw this thread but I didn't really get it. I could if there was some sorts of example. Thanks for the help anyways. :)
Hey check what I'm supporting:
Image

My Ex-Project:
Image

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8425
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Help with playeranim.lua

Postby Enjl » Tue Mar 20, 2018 7:09 am

Hoeloe's post has an example though.
In-game it's used by new characters like Megaman and Bowser, but reading their code will be more difficult than wrapping your head around Hoeloe's explanation.
The ABC of Creation
________________________________________________________
Image

User avatar
Vito_Studio
Rex
Rex
Posts: 91
Joined: Mon Jan 08, 2018 6:07 pm
Flair: Vito
Current Project: Not gonna ruin the surprise
Chat Username: Vito
Contact:

Re: Help with playeranim.lua

Postby Vito_Studio » Tue Mar 20, 2018 8:30 am

Enjl wrote:Hoeloe's post has an example though.
In-game it's used by new characters like Megaman and Bowser, but reading their code will be more difficult than wrapping your head around Hoeloe's explanation.
I mean a luadll file with a code which adds new frames for an animation (something like paralax example in the PGE wiki). I guess I'll try harder to make it work.
Hey check what I'm supporting:
Image

My Ex-Project:
Image

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8425
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Help with playeranim.lua

Postby Enjl » Tue Mar 20, 2018 8:47 am

local panim = API.load("playeranim")
local myAnim = panim.Anim({1,2,3,4,5})

function onStart()
myAnim:play(player)
end

this is just hoeloe's example
The ABC of Creation
________________________________________________________
Image

User avatar
Vito_Studio
Rex
Rex
Posts: 91
Joined: Mon Jan 08, 2018 6:07 pm
Flair: Vito
Current Project: Not gonna ruin the surprise
Chat Username: Vito
Contact:

Re: Help with playeranim.lua

Postby Vito_Studio » Tue Mar 20, 2018 8:49 am

Enjl wrote:local panim = API.load("playeranim")
local myAnim = panim.Anim({1,2,3,4,5})

function onStart()
myAnim:play(player)
end

this is just hoeloe's example
I'll try that. Thank you so much!
Hey check what I'm supporting:
Image

My Ex-Project:
Image


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests