summaryrefslogtreecommitdiff
path: root/demos/2d/motion/motion.tscn
blob: 920ee55423d31d699544423e181e32f24032b4f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[gd_scene load_steps=4 format=1]

[ext_resource path="res://car.png" type="Texture" id=1]
[ext_resource path="res://motion.gd" type="Script" id=2]

[sub_resource type="Animation" id=1]

resource/name = "motion"
length = 5.0
loop = true
step = 0.1
tracks/0/type = "value"
tracks/0/path = NodePath(".:transform/pos")
tracks/0/interp = 1
tracks/0/keys = { "cont":true, "times":FloatArray( 0, 5 ), "transitions":FloatArray( 1, 1 ), "values":[ Vector2( -113, 154 ), Vector2( 907, 154 ) ] }

[node name="Node2D" type="Node2D"]

[node name="idle" type="Node2D" parent="."]

[node name="car" type="Sprite" parent="idle"]

transform/pos = Vector2( -113, 154 )
texture = ExtResource( 1 )

[node name="anim" type="AnimationPlayer" parent="idle/car"]

playback/process_mode = 1
playback/default_blend_time = 0.0
root/root = NodePath("..")
anims/motion = SubResource( 1 )
playback/active = true
playback/speed = 1.0
blend_times = [  ]
autoplay = "motion"

[node name="Label" type="Label" parent="idle"]

focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
margin/left = 27.0
margin/top = 80.0
margin/right = 104.0
margin/bottom = 93.0
text = "Idle Process Animation"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="fixed" type="Node2D" parent="."]

transform/pos = Vector2( 0, 106 )

[node name="car" type="Sprite" parent="fixed"]

transform/pos = Vector2( -113, 154 )
texture = ExtResource( 1 )

[node name="anim" type="AnimationPlayer" parent="fixed/car"]

playback/process_mode = 0
playback/default_blend_time = 0.0
root/root = NodePath("..")
anims/motion = SubResource( 1 )
playback/active = true
playback/speed = 1.0
blend_times = [  ]
autoplay = "motion"

[node name="Label1" type="Label" parent="fixed"]

focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
margin/left = 27.0
margin/top = 80.0
margin/right = 104.0
margin/bottom = 93.0
text = "Fixed Process Animation"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="code_idle" type="Node2D" parent="."]

transform/pos = Vector2( 0, 215 )

[node name="car" type="Sprite" parent="code_idle"]

transform/pos = Vector2( -113, 154 )
texture = ExtResource( 1 )
script/script = ExtResource( 2 )
use_idle = true

[node name="Label1" type="Label" parent="code_idle"]

focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
margin/left = 27.0
margin/top = 80.0
margin/right = 104.0
margin/bottom = 93.0
text = "Idle Process Code"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="code_fixed" type="Node2D" parent="."]

transform/pos = Vector2( 0, 324 )

[node name="car" type="Sprite" parent="code_fixed"]

transform/pos = Vector2( -113, 154 )
texture = ExtResource( 1 )
script/script = ExtResource( 2 )
use_idle = false

[node name="Label1" type="Label" parent="code_fixed"]

focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
margin/left = 27.0
margin/top = 80.0
margin/right = 104.0
margin/bottom = 93.0
text = "Fixed Process Code"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1