Deadly Serious Media
Member
So I'm trying to use Spine 2D to get my characters looking more alive and I've come up against an issue early on.
I have 2 animations to start
-idle
-idleback
GM2 will let me change from idle to idleback but won't change back to idle.
Here is the create code:
here is the alarm:
I used draw_text to confirm the "dir" value is changing and the skeleton_animation_get() displays the right animation but, for some reason, it's just not changing.
I really want to use skeleton_animation_mix() but that doesn't work at all.
Any advice would be super awesome! I'd rather not have to export a bajillion pngs and build a system to animation them if I can help it.
I have 2 animations to start
-idle
-idleback
GM2 will let me change from idle to idleback but won't change back to idle.
Here is the create code:
Code:
skeleton_skin_set("Brian");
skeleton_animation_mix("idle","idleback",.03);
skeleton_animation_mix("idleback","idle",.03);
skeleton_animation_set("idle");
Code:
if dir=1{
dir=0;
skeleton_animation_set("idleback");
}else{
dir=1;
skeleton_animation_set("idle");
}
I really want to use skeleton_animation_mix() but that doesn't work at all.
Any advice would be super awesome! I'd rather not have to export a bajillion pngs and build a system to animation them if I can help it.
Last edited: