Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | elopez0911 | |
Old Version | Published before Godot 3 was released. |
Hello all,
So coming from Unity I wanted an engine that was less bloated and more geared towards 2D. I am literally a few days into this so this could be a bonehead question.
So I downloaded Godot 3 and created a Node2D with a Sprite and Tween as children:
Node2D
–Sprite
–Tween
The sprite is the blue godot included image. Then put a script on the Node2D:
extends Node2D
onready var tween = get_node("Tween")
onready var sprite = get_node("Sprite")
func _ready():
tween.interpolate_property(sprite, "transform/scale", Vector2(10,10), Vector2(1,1), 1.0, Tween.TRANS_ELASTIC, Tween.EASE_OUT)
tween.start()
pass
But when I run it, nothing happens. As a sanity check, I downloaded version 2.1.4 and created the same scenario and script, and when I run it the animation plays fine. I can’t imagine such a ‘simple’ thing would be broken from v2 to v3 so hoping someone can provide some guidance.