Godot Version
4.3
Question
I get this error Code[landing_tween():Parameter “p_target” is null],
in the landing Tween.
I don’t know why, because the jumping tween works fine. I just copy_paste my Code form jumping_Tween to landing_tween and now i get a error. This Error also appears if i deleted the jumping_tween.
I thought maybe the 2 tween overlap. is there a way to look if the tween is still active and kill it before i start (for example) the landing_tween
Error-Code: Invaildtype in function “Tween_property” in base “Tween”. Cannot convert argument 1 from Vector2 to Object
func jumping_tween():
var jump_scale:Vector2 = Vector2(0.8,1.1)
var tween_time:float = 0.35
animated_sprite_2d.scale = jump_scale
get_tree().create_tween().tween_property(animated_sprite_2d, "scale", Vector2(1,1), tween_time).set_ease(Tween.EASE_IN)
func landing_tween():
var landing_scale:Vector2 = Vector2(1.2,0.75)
var tween_time:float = 0.3
animated_sprite_2d = landing_scale
get_tree().create_tween().tween_property(animated_sprite_2d, "scale", Vector2(1,1), tween_time).set_ease(Tween.EASE_IN)