Skip to content

Instantly share code, notes, and snippets.

View kone9's full-sized avatar
😀
Happy to use free software

Ariel Gimenez kone9

😀
Happy to use free software
View GitHub Profile
@kone9
kone9 / port_animation_tree_animations.gd
Created December 21, 2019 00:41 — forked from RKiemGames/port_animation_tree_animations.gd
Porting AnimationTree animations to another AnimationTree
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")
@kone9
kone9 / networked_connect.gd
Created May 23, 2020 13:28 — forked from RKiemGames/networked_connect.gd
Persistent client connection
extends Node
class_name NetworkedConnect
var _connected_to_server = false
var _connection_alive = Timer.new()
var _host
var _port
var _debug = false