beanflip
Member
After the upgrade to v2.3, when using the animation_end event I see some animations start with frame -1. It only happens if the current animation has fewer frames than the sprite_index you're transitioning to. Here are a couple of examples:
It seems to know what image_index it's supposed to be on, it just replaces the first one with -1. I've been doing it this way since Game Maker 6.x. It doesn't seem like a change they would make on purpose.
Edit: Typo.
GML:
if sprite_index==mike_legs_turningR//8 frames
{
sprite_index=mike_legs_walking;//32 frames
image_index=20;
}
//The sprite_index changes to mike_legs_walking but the first frame is set to -1 instead of 20, followed by 21, 22, etc. If I change it from 20 to 7 or lower it works
else if sprite_index==mike_legs_landing//4 frames
{
sprite_index=mike_legs_standing;//8 frames
image_index=7;
}
//Same thing here. If I set it from 7 to 3 the image_index never goes to -1
Edit: Typo.
Last edited: