2023-12-07 18:56:49 +01:00
|
|
|
[gd_scene load_steps=4 format=3 uid="uid://b2eqjtv8oxnjx"]
|
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://MovingPlatform.gd" id="1_5ypkw"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://45fgpfmo6jpm" path="res://sheet1.png" id="2_xvef3"]
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_l8va0"]
|
|
|
|
size = Vector2(32, 5)
|
|
|
|
|
|
|
|
[node name="MovingPlatform" type="Node2D"]
|
|
|
|
script = ExtResource("1_5ypkw")
|
|
|
|
pos2 = Vector2(0, 0)
|
|
|
|
|
|
|
|
[node name="start" type="Marker2D" parent="."]
|
|
|
|
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="start"]
|
|
|
|
position = Vector2(-16, 0)
|
|
|
|
texture = ExtResource("2_xvef3")
|
|
|
|
centered = false
|
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(400, 299, 32, 5)
|
|
|
|
|
|
|
|
[node name="end" type="Marker2D" parent="."]
|
|
|
|
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="end"]
|
|
|
|
position = Vector2(-16, 0)
|
|
|
|
texture = ExtResource("2_xvef3")
|
|
|
|
centered = false
|
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(400, 299, 32, 5)
|
|
|
|
|
|
|
|
[node name="Platform" type="CharacterBody2D" parent="."]
|
|
|
|
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Platform"]
|
|
|
|
position = Vector2(-16, 0)
|
|
|
|
texture = ExtResource("2_xvef3")
|
|
|
|
centered = false
|
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(352, 299, 32, 5)
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Platform"]
|
|
|
|
position = Vector2(0, 2.5)
|
|
|
|
shape = SubResource("RectangleShape2D_l8va0")
|
2024-01-05 23:10:13 +01:00
|
|
|
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
|
|
wait_time = 0.001
|
|
|
|
one_shot = true
|