Hello Community,
I want to make EnhAnim to work with multiple objects that have different animations. I have this code:
oacIDsec = EnAn_oacCreate(30004)
EnAn_objExtractAnimation 30004, "Idle.anim", 210, 234
IdleAnim = EnAn_AnimLoad("Idle.anim")
EnAn_objExtractAnimation 30004, "Fire.anim", 575, 595
FireAnim = EnAn_AnimLoad("Fire.anim")
EnAn_objExtractAnimation 30004, "Walk.anim", 235, 259
WalkAnim = EnAn_AnimLoad("Walk.anim")
EnAn_objExtractAnimation 30004, "Run.anim", 300, 318
RunAnim = EnAn_AnimLoad("Run.anim")
EnAn_objExtractAnimation 30004, "Run.anim", 300, 318
RunAnim = EnAn_AnimLoad("Run.anim")
EnAn_objExtractAnimation 30004, "Death.anim", 65, 78
DeathAnim = EnAn_AnimLoad("Death.anim")
How can i transform this code to support multiple characters? I know that i have to make a for loop but the idea is that i don't really understand how can i convert the actual variables that declares the animations to work. (FireAnim, oacIDsec, these ones).
Thank you!
www.alexmatei.com