Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | javrocks |
My particle 2d node acts as a Shockwave. When i instance the scene i want the shockwave to be smaller (i.e the scale to be smaller)
extends Area2D
export(PackedScene) var Shockwave: PackedScene = preload("res://Scenes/ShockwaveEmitter.tscn")
func _ready():
pass
func instance(current_node: Node) -> void:
if not current_node == self:
return
var scene_instance = (Shockwave.instance())
get_tree().current_scene.add_child(scene_instance)
scene_instance.global_position = global_position
scene_instance.emitting = true
scene_instance.get_node("LifeSpan").start()
scene_instance.get_node(".").scale_amount_set_param(2)
I don’t know the function that would change the scale that’s in Process material. .
#scale_amount_set_param(2) dosen’t work