quicktime_event.tscn 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [gd_scene load_steps=6 format=3 uid="uid://deygcm6ka5r0l"]
  2. [ext_resource type="Script" uid="uid://dcc62er6hsc6h" path="res://Scripts/quicktimeEvent.gd" id="1_4y42p"]
  3. [ext_resource type="Texture2D" uid="uid://u7uik36x6fyo" path="res://Textures/quicktime event.png" id="2_nubse"]
  4. [ext_resource type="Texture2D" uid="uid://8e6xme06pctj" path="res://Textures/outline.png" id="3_5ydrg"]
  5. [sub_resource type="LabelSettings" id="LabelSettings_afkaq"]
  6. line_spacing = 0.0
  7. font_size = 271
  8. outline_size = 30
  9. outline_color = Color(0, 0, 0, 1)
  10. [sub_resource type="CircleShape2D" id="CircleShape2D_s2h1y"]
  11. radius = 252.66
  12. [node name="quicktimeEvent" type="Node2D"]
  13. script = ExtResource("1_4y42p")
  14. [node name="qte" type="Sprite2D" parent="."]
  15. position = Vector2(220, 187)
  16. scale = Vector2(0.352, 0.344)
  17. texture = ExtResource("2_nubse")
  18. [node name="Label" type="Label" parent="qte"]
  19. offset_left = -185.0
  20. offset_top = -180.0
  21. offset_right = 176.0
  22. offset_bottom = 177.0
  23. text = "E"
  24. label_settings = SubResource("LabelSettings_afkaq")
  25. horizontal_alignment = 1
  26. vertical_alignment = 1
  27. justification_flags = 0
  28. clip_text = true
  29. [node name="TouchScreenButton" type="TouchScreenButton" parent="qte"]
  30. shape = SubResource("CircleShape2D_s2h1y")
  31. [node name="Outline" type="Sprite2D" parent="."]
  32. position = Vector2(220, 189)
  33. scale = Vector2(1.304, 1.304)
  34. texture = ExtResource("3_5ydrg")
  35. [node name="Timer" type="Timer" parent="."]
  36. wait_time = 0.85
  37. one_shot = true
  38. autostart = true
  39. [connection signal="pressed" from="qte/TouchScreenButton" to="." method="_on_touch_screen_button_pressed"]