...you just have to determine x and y for ArrayEmotions
you can use arrays,global variables,instance variables,list, animaton frames..
let's say you have two sprites..4 frames each
GirlsSprite
BoysSprite
now you may request value:::
ArrayEmotions.At(BoysSprite.AnimationFrame,GirlsSprite.AnimationFrame)
........................................................................................................................................
if you using arrays you can store all data(instance variable)..not just "name"
set "name"...ArrayBoys.At(BoysSprite.AnimationFrame)
set "age"....ArrayBoys.At(BoysSprite.AnimationFrame,1)
etc....