This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node | |
class_name NetworkedConnect | |
var _connected_to_server = false | |
var _connection_alive = Timer.new() | |
var _host | |
var _port | |
var _debug = false |