forked from team-sg/hero-mark-2
30 lines
934 B
Text
30 lines
934 B
Text
[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_scholar.gd" type="Script" id=2]
|
|
|
|
[sub_resource type="SegmentShape2D" id=1]
|
|
resource_local_to_scene = true
|
|
a = Vector2( -4, 0.01 )
|
|
b = Vector2( 4, 0.01 )
|
|
|
|
[node name="MovingPlatform" type="Node2D"]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="Body" type="KinematicBody2D" parent="."]
|
|
collision_layer = 4
|
|
motion/sync_to_physics = true
|
|
moving_platform_apply_velocity_on_leave = 1
|
|
|
|
[node name="Sprite" type="Sprite" parent="Body"]
|
|
unique_name_in_owner = true
|
|
texture = ExtResource( 1 )
|
|
offset = Vector2( 0, 2 )
|
|
region_enabled = true
|
|
region_rect = Rect2( 0, 0, 8, 4 )
|
|
region_filter_clip = true
|
|
|
|
[node name="CollisionShape" type="CollisionShape2D" parent="Body"]
|
|
unique_name_in_owner = true
|
|
shape = SubResource( 1 )
|
|
one_way_collision = true
|