O
Oxiriark
Guest
I am new to GML.
I would like to know if I can create a sprite animation from destroying an object.
Right now I have a collision check on the player object with this code
I have an effect in the form of a sprite right now, it is 11 frames long and I want it to create it when the coin is destroyed.
What is the most effective way to do this?
I would like to know if I can create a sprite animation from destroying an object.
Right now I have a collision check on the player object with this code
Code:
// check coin collect
var _instance = instance_place(x, y, instance_nearest(x, y, obj_coin));
if (_instance != noone)
{
instance_destroy(_instance, false);
audio_play_sound(snd_coinGrab, 0, false);
}
What is the most effective way to do this?