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?
RadRedVito
Dolphin
Dolphin
Posts: 95
Joined: Mon Jan 08, 2018 6:07 pm
Contact:

Help with playeranim.lua

Postby RadRedVito » 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?

WildW
Rocky Wrench
Rocky Wrench
Posts: 664
Joined: Thu Dec 14, 2017 2:21 pm
Flair: C# more like Db
Pronouns: he/him

Re: Help with playeranim.lua

Postby WildW » 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.smbxgame.com/forums/ ... ua#p262591

RadRedVito
Dolphin
Dolphin
Posts: 95
Joined: Mon Jan 08, 2018 6:07 pm
Contact:

Re: Help with playeranim.lua

Postby RadRedVito » 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.smbxgame.com/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. :)

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9732
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Help with playeranim.lua

Postby Emral » 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.

RadRedVito
Dolphin
Dolphin
Posts: 95
Joined: Mon Jan 08, 2018 6:07 pm
Contact:

Re: Help with playeranim.lua

Postby RadRedVito » 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.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9732
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Help with playeranim.lua

Postby Emral » 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

RadRedVito
Dolphin
Dolphin
Posts: 95
Joined: Mon Jan 08, 2018 6:07 pm
Contact:

Re: Help with playeranim.lua

Postby RadRedVito » 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!


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari