function check_hitstop() { if global.hitstop > 0 { image_speed = 0; return true; } else { image_speed = 1; return false; } } /// @desc 优雅地检测该实例的sprite当前动画是否到达最后一帧 function animation_end() { if (image_speed == 0) return false; return (image_index + image_speed >= image_number); } function camera_snap() { oCamera.x = oCamera.x_to; oCamera.y = oCamera.y_to; }