forked from team-sg/hero-mark-2
adjusted jumping spider time
This commit is contained in:
parent
8c60bbf293
commit
56e56a5cff
4 changed files with 106 additions and 26 deletions
|
@ -46,7 +46,7 @@ tracks/2/keys = {
|
|||
|
||||
[sub_resource type="Animation" id=2]
|
||||
resource_name = "jump"
|
||||
length = 0.35
|
||||
length = 0.4
|
||||
step = 0.05
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("Sprite:region_rect")
|
||||
|
@ -67,10 +67,10 @@ tracks/1/loop_wrap = true
|
|||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/keys = {
|
||||
"times": PoolRealArray( 0, 0.15, 0.35 ),
|
||||
"times": PoolRealArray( 0, 0.2, 0.4 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ Vector2( 4, -2 ), Vector2( 4, -12 ), Vector2( 4, -2 ) ]
|
||||
"values": [ Vector2( 4, -2 ), Vector2( 4, -6 ), Vector2( 4, -2 ) ]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/path = NodePath("Hitbox:position")
|
||||
|
@ -79,10 +79,10 @@ tracks/2/loop_wrap = true
|
|||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/keys = {
|
||||
"times": PoolRealArray( 0, 0.15, 0.35 ),
|
||||
"times": PoolRealArray( 0, 0.2, 0.4 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ Vector2( 0, -4 ), Vector2( 0, -14 ), Vector2( 0, -4 ) ]
|
||||
"values": [ Vector2( 0, -4 ), Vector2( 0, -8 ), Vector2( 0, -4 ) ]
|
||||
}
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=3]
|
||||
|
@ -93,16 +93,17 @@ position = Vector2( 0, -4 )
|
|||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
position = Vector2( 4, 2 )
|
||||
position = Vector2( 4, -2 )
|
||||
texture = ExtResource( 1 )
|
||||
region_enabled = true
|
||||
region_rect = Rect2( 0, 0, 13, 12 )
|
||||
region_rect = Rect2( 13, 0, 13, 12 )
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
anims/idle = SubResource( 1 )
|
||||
anims/jump = SubResource( 2 )
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="." groups=["enemy_hitbox"]]
|
||||
position = Vector2( 0, -4 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
||||
position = Vector2( 3.5, 4 )
|
||||
|
|
|
@ -42,7 +42,6 @@ position = Vector2( 5, 5 )
|
|||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="Hitbox"]
|
||||
frames = SubResource( 3 )
|
||||
frame = 1
|
||||
playing = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue