mirror of
https://git.kittycat.homes/BatHeartTiger/untitled-plant-game.git
synced 2024-08-15 03:16:27 +00:00
13 lines
361 B
GDScript
13 lines
361 B
GDScript
extends Sprite
|
|
|
|
|
|
|
|
func _on_Plant_good_water() -> void:
|
|
var main = get_tree().current_scene
|
|
var Particle = preload("res://World/GoodAndWellBalancedWaterParticles.tscn")
|
|
var particle = Particle.instance()
|
|
particle.one_shot = true
|
|
particle.emitting = true
|
|
main.add_child(particle)
|
|
particle.global_position = global_position
|
|
particle.global_position.y -= 2
|