Moving platform
This commit is contained in:
18
scenes/platform.tscn
Normal file
18
scenes/platform.tscn
Normal file
@ -0,0 +1,18 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://c54bhvh3awmhl"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://decv4b6odh7sf" path="res://assets/sprites/platforms.png" id="1_6beh7"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_l3y6f"]
|
||||
size = Vector2(32, 9)
|
||||
|
||||
[node name="AnimatableBody2D" type="AnimatableBody2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_6beh7")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(16, 0, 32, 10)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -0.5)
|
||||
shape = SubResource("RectangleShape2D_l3y6f")
|
||||
one_way_collision = true
|
Reference in New Issue
Block a user