Creating the Bullet Scene
1. Scene Setup & Node Structure
Click the + icon next to your open scene tabs to create a New Scene.
-Click Other Node, search for Area2D, and select it as the root node.
-Rename the root Area2D node to bullet.
-With bullet selected, add two child nodes:
-Sprite2D
-CollisionShape2D
Scene Tree Structure
-bullet (Area2D)
-Sprite2D
-CollisionShape2D
2. Node Settings & Adjustments
-Sprite2D Setup:
-Select Sprite2D.
-Drag your (res://assets/kenney_space-shooter-remastered/PNG/Lasers/laserGreen11.png) texture file into the Texture property in the Inspector.
-Expand Transform and set Scale to x: 0.5, y: 0.5.
-CollisionShape2D Setup:
-Select CollisionShape2D.
-In the Inspector, set Shape to New RectangleShape2D.
-Under Size, set x: 4.0 px and y: 10.0 px.
-Expand Node2D Transform and set Position to x: 0.0 px, y: -8.0 px.
3. Save the Scene
-Press Ctrl + S (or Cmd + S on macOS).
-Save the scene file inside your scenes folder as res://scenes/bullet.tscn.