[gd_scene load_steps=4 format=2] [ext_resource path="res://graphics/moving_platform/moving_platform.png" type="Texture" id=1] [ext_resource path="res://objects/environment/moving_platform/moving_platform.gd" type="Script" id=2] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 4, 2 ) [node name="MovingPlatform" type="KinematicBody2D"] collision_layer = 4 motion/sync_to_physics = true script = ExtResource( 2 ) [node name="Sprite" type="Sprite" parent="."] position = Vector2( 0, 2 ) texture = ExtResource( 1 ) region_enabled = true region_rect = Rect2( 0, 0, 8, 4 ) region_filter_clip = true [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2( 0, 2 ) shape = SubResource( 1 ) one_way_collision = true