Animation
Star animation & map boundary
This commit is contained in:
@@ -1,10 +1,27 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Assets/blue_star.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Sprites/Assets/bule_star_sprite_spread.png" type="Texture" id=1]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 7.95021, 8.07351 )
|
||||
|
||||
[sub_resource type="Animation" id=2]
|
||||
resource_name = "Sparkle"
|
||||
length = 2.0
|
||||
loop = true
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("Sprite: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.5, 1, 1.5 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1, 1 ),
|
||||
"update": 1,
|
||||
"values": [ 0, 1, 2, 3 ]
|
||||
}
|
||||
|
||||
[node name="Star" type="RigidBody2D"]
|
||||
collision_layer = 4
|
||||
collision_mask = 0
|
||||
@@ -15,3 +32,10 @@ shape = SubResource( 1 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = ExtResource( 1 )
|
||||
hframes = 4
|
||||
frame = 2
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
autoplay = "Sparkle"
|
||||
method_call_mode = 1
|
||||
anims/Sparkle = SubResource( 2 )
|
||||
|
Reference in New Issue
Block a user