#trying to follow a youtube tutorial for melee attacks.

4 messages · Page 1 of 1 (latest)

livid shell
#

``function animation_end(){

var _sprite = sprite_index;
var _image = image_index;
if(argument_count > 0) _sprite=argument[0];
if(argument_count > 1) _image=argument[1];
var _type=sprite_get_speed_type(sprite_index);
var _spd=sprite_get_speed(sprite_index)*image_speed;
if(_type == spritespeed_framespersecond)
_spd = _spd/room_speed;
if(argument_count > 2) _spd=argument[2];
return _image+_spd >= sprite_get_number(_sprite);
}``

#

this is what im using to end the script, when the animation of the sprite is done playing it should end. but it just restarts

#

after blinking

#

here is the video im following