Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///@function animation_end(stopAnimation_true_false)
- /// @description returns true if an animation hits the last frame
- /// @param stop_animation
- /// @credit: based on heartbeast’s code https://uheartbeast.tumblr.com/post/141086627878/animation-hit-frame-and-animation-end
- if (argument_count == 1) var _stop_animation = argument[0]; // stop animation on last frame
- else var _stop_animation = false;
- var _animation_over = animation_hit_frame(image_number-1);
- if ( _stop_animation and _animation_over )
- {
- image_speed = 0;
- image_index = image_number – 1;
- }
- return _animation_over;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement