Are you using the "drag and drop" functions or writing GML code?
Either way, here is a solution to your problem:
- Destroy the bullet
- Change the enemy object's sprite
- Once the sprite plays through all sub-images, destroy the enemy object
If you're using GML code, this should do the trick. I copied this example from the documentation, which should be your new best friend. It's a treasure trove of valuable information. Press the F1 key.
Example:
Code:
if image_speed > 0
{
if image_index > image_number - 1 instance_destroy();
}
The above code checks to see if the sprite is animating, and if it is it then checks to see if the current image_index is greater than the number of sub-images and if it is it destroys the instance.
I'm getting old, and forgot how "drag and drop" works... but the theory is the same. If you still can't figure it out, and you don't get better help from another member: Just send me a message, or bump this thread and I'll get you squared away.
One last thing: Congratulations on creating your own video game. Don't get discouraged, and stick with it. We're always here when you get yourself into a pickle.