src / beginning / chapters / menu / photo / photo.tscn

Diagram

Diagram

Assets

200
200
200
200

Scene Tree

  • Photo Sprite2D

    • Frame Polygon2D

      • Image Sprite2D

    • Strawberries HBoxContainer

      • Strawberry1 MarginContainer

        • Strawberry Sprite2D

      • Strawberry2 MarginContainer

        • Strawberry Sprite2D

      • Strawberry3 MarginContainer

        • Strawberry Sprite2D

    • AnimationPlayer AnimationPlayer

Signal Connections

Note
No signal connections.

Animations

Animation_tk6ev

Diagram

flick

Diagram

pull

Diagram

Properties

Table 1. Root properties
Name Value

texture_filter

2

rotation

-0.132838

texture

Photo
Figure 1. res://assets/images/ui/Chapters/menu/Photo.svg

script

Table 2. $Frame properties
Name Value

clip_children

1

position

Vector2(0.132448, -0.99119)

polygon

PackedVector2Array(-231.306, -164.081, 230.871, -164.874, 231.259, 96.4797, -231.777, 96.1488)

Table 3. $Frame/Image properties
Name Value

unique_name_in_owner

true

position

Vector2(-0.102002, -34.1747)

scale

Vector2(0.772257, 0.767854)

texture

Dummy
Figure 2. res://data/chapters/photos/0/Dummy.png
Table 4. $Strawberries properties
Name Value

anchors_preset

-1

anchor_left

0.307

anchor_top

0.843

anchor_right

0.307

anchor_bottom

0.843

offset_left

-234.403

offset_top

-200.2

offset_right

67.597

offset_bottom

-200.2

rotation

-0.00349066

alignment

2

Table 5. $Strawberries/Strawberry1 properties
Name Value

visible

false

layout_mode

2

theme_override_constants/margin_right

30

Table 6. $Strawberries/Strawberry1/Strawberry properties
Name Value

scale

Vector2(0.15, 0.15)

texture

Strawberry
Figure 3. res://assets/images/ui/Strawberry.png
Table 7. $Strawberries/Strawberry2 properties
Name Value

layout_mode

2

theme_override_constants/margin_right

30

Table 8. $Strawberries/Strawberry2/Strawberry properties
Name Value

scale

Vector2(0.15, 0.15)

texture

Strawberry blank
Figure 4. res://assets/images/ui/Strawberry_blank.png
Table 9. $Strawberries/Strawberry3 properties
Name Value

layout_mode

2

theme_override_constants/margin_right

30

Table 10. $Strawberries/Strawberry3/Strawberry properties
Name Value

scale

Vector2(0.15, 0.15)

texture

Strawberry
Figure 5. res://assets/images/ui/Strawberry.png
Table 11. $AnimationPlayer properties
Name Value

unique_name_in_owner

true

libraries

{ "": SubResource("AnimationLibrary_ih3et") }

photo.gd

extends Sprite2D

@export var flicked: bool = false
@export var image : Texture2D : set = set_image


func set_image(image: Texture2D) -> void:
	%Image.texture = image


func flick() -> void:
	if not flicked: %AnimationPlayer.play("flick")


func pull() -> void:
	if flicked: %AnimationPlayer.play("pull")