"spike entered" trigger happens on launching level 1

Hello. Working through the spikes tutorial video, and after instancing my spikes scene and launching the game, the “ouch” notification shows in console straight away, once for each spikes instance I have in the level. It also triggers correctly when entering each spikes area. I’ve deleted and recreated the spikes scene (and subobjects, including script) but get the same behaviour. Any ideas where to look? Collision layer is “Enemies” and mask is “player”. Bit baffled. Cheers in advance!

Hello. Worked this one out - the tilemap was in the “player” collision layer instead of “terrain”. Silly me. Please mark as solved, or delete as appropriate.

2 Likes

Privacy & Terms