Begin by adding a new Area3D node to the Scene
Begin by adding a new Area3D node to the Scene
rename it to Enemy
rename it to Enemy
Area3D
Area3D
Area3D is a different kind of node to the StaticBody that we use on our platforms.
Area3D is a different kind of node to the StaticBody that we use on our platforms.
It doesn’t act as a physical object and can be used on moving objects.
It doesn’t act as a physical object and can be used on moving objects.
They are ideal for use as triggers.
They are ideal for use as triggers.
We use Area3Ds to detect colliders within an area without blocking them.
We use Area3Ds to detect colliders within an area without blocking them.
This makes Area3Ds perfect for enemies, collectibles, or anything else you
This makes Area3Ds perfect for enemies, collectibles, or anything else you
want the player to be able to walk through while triggering an event.
want the player to be able to walk through while triggering an event.
Drag the spikeBlock.obj into the scene
Drag the spikeBlock.obj into the scene
Now make it a child of Enemy
Now make it a child of Enemy
Rename it to Model
Rename it to Model
Add CollisionShape3D Node
Add CollisionShape3D Node
Choose BoxShape3D
Choose BoxShape3D
Resize it to fit the model
Resize it to fit the model
Right-click on Enemy Node and Save Branch as Scene
Right-click on Enemy Node and Save Branch as Scene
Now add enemies to the map. A good spot is between two platforms.
Now add enemies to the map. A good spot is between two platforms.