Add project code
This commit is contained in:
7
scripts/destroy_projectile/destroy_projectile.gml
Normal file
7
scripts/destroy_projectile/destroy_projectile.gml
Normal file
@@ -0,0 +1,7 @@
|
||||
function destroy_projectile(){
|
||||
is_exploding = true;
|
||||
sprite_index = s_destroy;
|
||||
image_index = 0; // Reset animation
|
||||
image_speed = 1; // Play explosion animation
|
||||
bullet_spd = 0; // Stop movement
|
||||
}
|
||||
Reference in New Issue
Block a user