S
Snayff
Guest
Evening all,
I am looking to shift states when an animation has hit a certain frame (the cast frame), in this case represented as stateVar[0] and it is equal to 4. However, the formula evaluates false under the below circumstances, which doesnt seem right to me! It actually seems to resolve as true after a few loops.
Shots from the same paused frame:
So, firstly I am unsure why the image index shows differently in the game, when shown as a string, to in the debugger. Does the string conversion cause an issue? And secondly, the in game debug string seems accurate for my other calculations, so I am not sure what I am missing here!
Any help would be appreciated.
Snayff
I am looking to shift states when an animation has hit a certain frame (the cast frame), in this case represented as stateVar[0] and it is equal to 4. However, the formula evaluates false under the below circumstances, which doesnt seem right to me! It actually seems to resolve as true after a few loops.
Code:
if image_index >= stateVar[0] {
scStateChkSwAirborne();
[...]
}
Code:
draw_text(x ,y + 6,
+ "\n IMG_index: " + string(image_index)
);
Shots from the same paused frame:
So, firstly I am unsure why the image index shows differently in the game, when shown as a string, to in the debugger. Does the string conversion cause an issue? And secondly, the in game debug string seems accurate for my other calculations, so I am not sure what I am missing here!
Any help would be appreciated.
Snayff