+1 vote
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 ?

in Engine by (25 points)

1 Answer

0 votes
Best answer

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.

by (840 points)
selected by

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/...."

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.