Simple tween effect - WHAT AM I DOING WRONG ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Pastuh
onready var TweenNode = get_node("Tween")
onready var sprity = get_node("icon")

func _ready():
    TweenNode.interpolate_property(sprity, "transform/scale", sprity.get_scale(), 
        Vector2(2.0, 2.0), 1.0, Tween.TRANS_BACK, Tween.EASE_OUT)
    TweenNode.start()

The sprite called “icon” does not react to this, why ?

:bust_in_silhouette: Reply From: Footurist

The property path for scale is "scale" not "transform/scale". You can also do "scale:x". Also, you can just use $Node/Node/Node... for accessing hirarchy below your node.

Thanks Mate it worked, so “transform/scale” is the old way or what ? Because I’ve seen two tutorials on youtube with the same way of using properties “transform/…”

Pastuh | 2018-02-27 19:59

I began with Godot 3, but it’s probably from Godot 2, yes.

Footurist | 2018-02-28 01:29

1 Like