revo-jailbreak/objects/enemy/ghost_scholar.tscn

35 lines
1 KiB
Text

[gd_scene load_steps=4 format=2]
[ext_resource path="res://objects/enemy/ghost_scholar.gd" type="Script" id=1]
[ext_resource path="res://graphics/enemy/ghost.png" type="Texture" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 3, 3.5 )
[node name="Ghost" type="Node2D"]
script = ExtResource( 1 )
radius = 4.0
speed = 2.0
[node name="Hitbox" type="Area2D" parent="." groups=["enemy_hitbox"]]
position = Vector2( 36, 4 )
[node name="Sprite" type="Sprite" parent="Hitbox"]
unique_name_in_owner = true
texture = ExtResource( 2 )
hframes = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
position = Vector2( 0, -0.5 )
shape = SubResource( 1 )
[node name="Pivot" type="Node2D" parent="."]
position = Vector2( 4, 4 )
[node name="RemoteTransform" type="RemoteTransform2D" parent="Pivot"]
position = Vector2( 32, 0 )
remote_path = NodePath("../../Hitbox")
update_rotation = false
update_scale = false
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]