Animation fix and some more tests
This commit is contained in:
@ -40,7 +40,8 @@ func target_reached() -> void:
|
||||
if name.contains("Arrow"): #special effects here!
|
||||
if randf() < 0.1:
|
||||
target.get_parent().set_speed(target.get_parent().get_speed() / 2)
|
||||
pass
|
||||
target.get_parent().adjust_speed_of_animation()
|
||||
pass
|
||||
if name.contains("Magic"):
|
||||
if randf() < 0.5:
|
||||
target.get_parent().set_progress(max(target.get_parent().get_progress() - 60, 0))
|
||||
|
@ -6,6 +6,21 @@
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_lj5pp"]
|
||||
size = Vector2(18, 16)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_0itbo"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite2D:rotation")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [0.0]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_lj5pp"]
|
||||
resource_name = "rotation"
|
||||
length = 0.5
|
||||
@ -27,21 +42,6 @@ tracks/0/keys = {
|
||||
"values": [0.0, 6.28319]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_0itbo"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite2D:rotation")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [0.0]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_55qby"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_0itbo"),
|
||||
|
Reference in New Issue
Block a user