1
Fork 0
mirror of https://github.com/Steffo99/looping-for-loops.git synced 2024-11-28 19:14:20 +00:00
looping-for-loops/Objects/ConveyorBelt/Gear.tscn
2020-10-04 16:35:24 +02:00

32 lines
834 B
Text

[gd_scene load_steps=4 format=2]
[ext_resource path="res://Sprites/conveyor_gear.png" type="Texture" id=1]
[ext_resource path="res://Objects/ConveyorBelt/Gear.gd" type="Script" id=2]
[sub_resource type="Animation" id=2]
resource_name = "SpinClockwise"
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Gear1:rotation_degrees")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 0.0, 360.0 ]
}
[node name="Gear" type="Node2D"]
position = Vector2( -400, 0 )
script = ExtResource( 2 )
[node name="Gear1" type="Sprite" parent="."]
texture = ExtResource( 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/SpinClockwise = SubResource( 2 )