We’d love to hear from you. Whether you have a question that you’d like us to answer as part of our FAQ,  you’ve identified something that just doesn’t quite look right in one of our tutorials, you have a business opportunity or for any other reason, please use this simple form to contact us.

We’ll do our best to provide a prompt response.

Like what you see?...pass it on!

Configuring Collisions

Up until this point we have configured a couple of CollisionMasks… now let’s dig into that a bit deeper and actually configure what those values mean.

Head into the Project->Project Settings menu and locate Layer Names->2D Physics in the left side panel:

2D-Physics-Layers

These layers are used to determine both on what layers a physics/collision object exist on and which other layers the interact with.

We set up the following layers:

Collision-Layer-Definitions

Now that we have the collision layers configured, re-open the Player scene, select the Area2D node and set the collisions like this:

Player-Collision-Layers

Creating the Enemies<<PreviousTable of ContentsNext>>Populating the Game World

Like what you see?...pass it on!

script ends --->