Files
godot-demo-projects/2d/platformer/src/Platforms/Platform.tscn

22 lines
572 B
Plaintext

[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/art/platforms/moving_platform.png" type="Texture" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 47, 6 )
[node name="Platform" type="KinematicBody2D"]
z_index = -1
collision_layer = 8
collision_mask = 0
collision/safe_margin = 0.12
motion/sync_to_physics = true
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, -4 )
shape = SubResource( 1 )
one_way_collision = true