This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
explaining 'addByPrefix' and 'addByIndices' #225
BernardoGP4504
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's just say that you want to make a character using Haxe or just wanted to know what are those (if you ever looked at the files).
Then this is the right source to know!
addByPrefix('animation:String', 'xml anim:String', framerate:Int, loop:Bool);
an
addbyprefix
is adding a normal animation for your character for example, let's add gf's left animation:animation: the animation
xml anim: that's the animation in the
.xml
framerate: self explanatory
loop: if your not going to loop the animation then use
false
. If you want it to loop then don't use this field like:addByIndices('animation:String', 'xml anim:String', [indices:String], "", framerate:Int, loop:Bool);
basically the same as addByPrefix but is uses indices but, what are indices?
Indices
They are basically each frame of the animation, for an better explaination here's an example:
This is Edd, he is a Eddsworld character and a character from the FNF Funkin' Eddventure mod. Let's take a look in his left animation
This is the first indice from his idle (0)
This is the third indice from his idle (2)
did you spot the difference? They are separate frames; frames are nothing more than indices
Beta Was this translation helpful? Give feedback.
All reactions