Greetings, and thanks for the course! Enjoying it so far.
I had originally run into the same problem as Kbatchelor (thanks to his post I spotted the error with the tile map), where the spikes would trigger as soon as the level loaded. Correcting the masks (and double-checking the layer selections as well) did not solve the problem. What actually solved the problem was removing the “player” selection from the spikes’ mask. And – it worked correctly after that. This made me curious, so I explored the layers and masks. Turns out I can uncheck all masks for the spikes and the tile map, leaving just the appropriate selections in the layers checked (spikes = “enemy” and tile map = “terrain”). The player is on the “player” layer and has “enemy” and “terrain” checked off in the masks. And everything works properly.
I am wondering then why we need to check off “player” for the spikes or the tile map when, as long as the player has the proper masks, everything works properly? (and, in my case, better)
Thanks for any input here. Hopefully I was clear with my explanation
Edit: So I went over this numerous times with the same result, but one last time and I was able to check the “player” mask on the spikes and I didn’t get the trigger. Either I missed something three times prior (possible, afraid to say), or Godot is a bit buggy in this regard. But my question still stands – why not just check only the player masks? Thanks.