From 67d551a4b2867d943247eb5be720020de1117034 Mon Sep 17 00:00:00 2001 From: LeightonGinty Date: Sat, 29 Oct 2022 13:57:17 +0100 Subject: movement --- Node2D.tscn | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Node2D.tscn (limited to 'Node2D.tscn') diff --git a/Node2D.tscn b/Node2D.tscn new file mode 100644 index 0000000..c4b47a3 --- /dev/null +++ b/Node2D.tscn @@ -0,0 +1,20 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://icon.png" type="Texture" id=1] +[ext_resource path="res://KinematicBody2D.gd" type="Script" id=2] + +[sub_resource type="CircleShape2D" id=1] + +[node name="Node2D" type="Node2D"] +position = Vector2( 46, 10 ) + +[node name="KinematicBody2D" type="KinematicBody2D" parent="."] +position = Vector2( 149, 52 ) +input_pickable = true +script = ExtResource( 2 ) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="KinematicBody2D"] +shape = SubResource( 1 ) + +[node name="Sprite" type="Sprite" parent="KinematicBody2D/CollisionShape2D"] +texture = ExtResource( 1 ) -- cgit v1.2.3-70-g09d2