My first 2D game in Godot 4.4
This commit is contained in:
8
smoke_explosion/smoke_explosion.gd
Normal file
8
smoke_explosion/smoke_explosion.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
func _ready():
|
||||
%Smoke.material.set_shader_parameter("texture_offset", Vector2(randfn(0.0, 1.0), randfn(0.0, 1.0)))
|
||||
%AnimationPlayer.play("explosion")
|
||||
await %AnimationPlayer.animation_finished
|
||||
queue_free()
|
||||
Reference in New Issue
Block a user