S
seventhirtysix
Guest
I've got an attack animation where I want to give a unique collision mask per frame, but I didn't find that to be possible. I found a solution here where it was suggested I break up the attacks, so I did so into three parts (pre, actual, and post).
For the object, I added an Animation End script like this:
if (sprite_index == pre) {
sprite_index = actual;
}
if (sprite_index == actual) {
sprite_index = post;
}
if (sprite_index == post) {
state = 0; //this is just a reset to idle state
}
However, this only executes the pre sprite animation, and then returns to state 0.
Am I missing a function in my blocks, or is there a better way to achieve what I want?
Thanks
For the object, I added an Animation End script like this:
if (sprite_index == pre) {
sprite_index = actual;
}
if (sprite_index == actual) {
sprite_index = post;
}
if (sprite_index == post) {
state = 0; //this is just a reset to idle state
}
However, this only executes the pre sprite animation, and then returns to state 0.
Am I missing a function in my blocks, or is there a better way to achieve what I want?
Thanks