Wicked-Depths/moving_platform.tscn

43 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

[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")