adjusted card speed
This commit is contained in:
@@ -24,6 +24,7 @@ collision_mask = 0
|
|||||||
script = ExtResource("1_t6o5d")
|
script = ExtResource("1_t6o5d")
|
||||||
card_mesh = NodePath("Model/Cube")
|
card_mesh = NodePath("Model/Cube")
|
||||||
front_texture = ExtResource("3_jeoeb")
|
front_texture = ExtResource("3_jeoeb")
|
||||||
|
move_duration = 0.3
|
||||||
|
|
||||||
[node name="Model" parent="." instance=ExtResource("2_enav7")]
|
[node name="Model" parent="." instance=ExtResource("2_enav7")]
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ func _ready() -> void:
|
|||||||
test_details.card_id = 2
|
test_details.card_id = 2
|
||||||
card.card_details = test_details
|
card.card_details = test_details
|
||||||
add_card(card)
|
add_card(card)
|
||||||
await get_tree().create_timer(0.2).timeout
|
await get_tree().create_timer(0.16).timeout
|
||||||
|
|
||||||
func add_card(card: PlayingCard) -> void:
|
func add_card(card: PlayingCard) -> void:
|
||||||
self.add_child(card)
|
self.add_child(card)
|
||||||
|
|||||||
Reference in New Issue
Block a user