View Single Post
Violet CLM Violet CLM's Avatar

JCF Éminence Grise

Joined: Mar 2001

Posts: 10,993

Violet CLM has disabled reputation

Apr 26, 2015, 09:33 AM
Violet CLM is offline
Reply With Quote
1: Don't use Jazz Sprite Dynamite.
2: Suppose for the sake of simplicity that your food sprite is in animation 0 in anim set 0 in your custom j2a file. Then there are various approaches you could take, but these two are probably the most practical.
Code:
jjAnimSets[ANIM::CUSTOM[0]].load(0, "myCustom.j2a");
//option 1: affects only apples
jjObjectPresets[OBJECT::APPLE].determineCurAnim(ANIM::CUSTOM[0], 0);
//option 2: affects any object that might try to use the apple animation
jjAnimations[jjObjectPresets[OBJECT::APPLE].curAnim] = jjAnimations[jjAnimSets[ANIM::CUSTOM[0]]];
__________________