src / beginning / chapters / menu / photo / photo.tscn
Diagram
Instantiators
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
flick
pull
Properties
| Name | Value |
|---|---|
texture_filter |
|
rotation |
|
texture |
|
script |
| Name | Value |
|---|---|
clip_children |
|
position |
|
polygon |
|
| Name | Value |
|---|---|
unique_name_in_owner |
|
position |
|
scale |
|
texture |
| Name | Value |
|---|---|
anchors_preset |
|
anchor_left |
|
anchor_top |
|
anchor_right |
|
anchor_bottom |
|
offset_left |
|
offset_top |
|
offset_right |
|
offset_bottom |
|
rotation |
|
alignment |
|
| Name | Value |
|---|---|
visible |
|
layout_mode |
|
theme_override_constants/margin_right |
|
| Name | Value |
|---|---|
scale |
|
texture |
| Name | Value |
|---|---|
layout_mode |
|
theme_override_constants/margin_right |
|
| Name | Value |
|---|---|
scale |
|
texture |
| Name | Value |
|---|---|
layout_mode |
|
theme_override_constants/margin_right |
|
| Name | Value |
|---|---|
scale |
|
texture |
| Name | Value |
|---|---|
unique_name_in_owner |
|
libraries |
|
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")


