Skip to content

Instantly share code, notes, and snippets.

Avatar
😀
Happy to use free software

Ariel Gimenez kone9

😀
Happy to use free software
View GitHub Profile
@kone9
kone9 / networked_connect.gd
Created May 23, 2020 — forked from RKiemGames/networked_connect.gd
Persistent client connection
View networked_connect.gd
extends Node
class_name NetworkedConnect
var _connected_to_server = false
var _connection_alive = Timer.new()
var _host
var _port
var _debug = false
@kone9
kone9 / port_animation_tree_animations.gd
Created Dec 21, 2019 — forked from RKiemGames/port_animation_tree_animations.gd
Porting AnimationTree animations to another AnimationTree
View port_animation_tree_animations.gd
func _ready():
for anim in $AnimationPlayer2.get_animation_list():
$AnimationPlayer.add_animation(anim, $AnimationPlayer2.get_animation(anim))
#example: running animations ported
$AnimationPlayer.connect("animation_finished", self, "rotate_anim")
$AnimationPlayer.play("test1")
func rotate_anim(anim_name):
$AnimationPlayer.play("test2")