moving_platform.tscn 670 B

1234567891011121314151617181920212223242526272829
  1. [gd_scene load_steps=3 format=2]
  2. [ext_resource path="res://moving_platform.gd" type="Script" id=1]
  3. [ext_resource path="res://moving_platform.png" type="Texture" id=2]
  4. [node name="moving_platform" type="Node2D"]
  5. script = ExtResource( 1 )
  6. motion = Vector2( 0, 0 )
  7. cycle = 1.0
  8. [node name="platform" type="KinematicBody2D" parent="."]
  9. input_pickable = false
  10. collision_layer = 1
  11. collision_mask = 1
  12. collision/safe_margin = 0.08
  13. [node name="Sprite" type="Sprite" parent="platform"]
  14. texture = ExtResource( 2 )
  15. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="platform"]
  16. build_mode = 0
  17. polygon = PoolVector2Array( -88, -24, 88, -24, 88, 24, -88, 24 )