[gd_scene load_steps=5 format=2] [ext_resource path="res://cuberot.png" type="Texture" id=1] [ext_resource path="res://PlayerSprite.gd" type="Script" id=2] [sub_resource type="Animation" id=1] resource_name = "Animate" length = 0.7 loop = true tracks/0/type = "value" tracks/0/path = NodePath(".:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6 ), "transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ), "update": 1, "values": [ 0, 1, 2, 3, 4, 5, 6 ] } [sub_resource type="Animation" id=2] length = 0.001 tracks/0/type = "value" tracks/0/path = NodePath(".:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 0, "values": [ 0 ] } [node name="PlayerSprite" type="Sprite"] light_mask = 0 position = Vector2( 0, 272 ) rotation = -1.5708 scale = Vector2( 2, 2 ) texture = ExtResource( 1 ) offset = Vector2( -8, -8 ) hframes = 7 script = ExtResource( 2 ) [node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."] position = Vector2( -16, -16 ) rect = Rect2( 0, 0, 16, 16 ) [node name="Tween" type="Tween" parent="."] [node name="AnimationPlayer" type="AnimationPlayer" parent="."] autoplay = "Animate" anims/Animate = SubResource( 1 ) anims/RESET = SubResource( 2 ) [connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]